diff options
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 4 |
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); |