Add missing Rotation2D::operator=(Matrix2x2)

This commit is contained in:
Gael Guennebaud
2015-12-03 22:25:26 +01:00
parent d2d4c45d55
commit 1562e13aba
2 changed files with 25 additions and 0 deletions

View File

@@ -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);