From 1562e13aba86b7dbb622c40198b487b6d344ee24 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 3 Dec 2015 22:25:26 +0100 Subject: Add missing Rotation2D::operator=(Matrix2x2) --- test/geo_transformations.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/geo_transformations.cpp') 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 void transformations() VERIFY( rot2.smallestAngle() >= -Scalar(EIGEN_PI) ); VERIFY( rot2.smallestAngle() <= Scalar(EIGEN_PI) ); VERIFY_IS_APPROX( angleToVec(rot2.smallestAngle()), angleToVec(rot2.angle()) ); + + Matrix rot2_as_mat(rot2); + Rotation2D rot3(rot2_as_mat); + VERIFY_IS_APPROX( angleToVec(rot2.smallestAngle()), angleToVec(rot3.angle()) ); } s0 = internal::random(-100,100); -- cgit v1.2.3