aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_transformations.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-12-03 22:25:26 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-12-03 22:25:26 +0100
commit1562e13aba86b7dbb622c40198b487b6d344ee24 (patch)
treeee6535c8a24b3b794d128ad529efec3ff145e887 /test/geo_transformations.cpp
parentd2d4c45d55afc7294baa292dd6fc0440dee0a04b (diff)
Add missing Rotation2D::operator=(Matrix2x2)
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r--test/geo_transformations.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp
index 94ed155ef..51f90036d 100644
--- a/test/geo_transformations.cpp
+++ b/test/geo_transformations.cpp
@@ -430,6 +430,10 @@ template<typename Scalar, int Mode, int Options> void transformations()
VERIFY( rot2.smallestAngle() >= -Scalar(EIGEN_PI) );
VERIFY( rot2.smallestAngle() <= Scalar(EIGEN_PI) );
VERIFY_IS_APPROX( angleToVec(rot2.smallestAngle()), angleToVec(rot2.angle()) );
+
+ Matrix<Scalar,2,2> rot2_as_mat(rot2);
+ Rotation2D<Scalar> rot3(rot2_as_mat);
+ VERIFY_IS_APPROX( angleToVec(rot2.smallestAngle()), angleToVec(rot3.angle()) );
}
s0 = internal::random<Scalar>(-100,100);