From 2b70b2f5708fdedf24c5d47768c2b24019c48311 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 15 Jan 2019 22:50:42 +0100 Subject: Make Transform::rotation() an alias to Transform::linear() in the case of an Isometry --- 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 25f1d9aa0..c72267955 100755 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -666,6 +666,10 @@ template void transformations_no_scale() VERIFY((m3 * m3.inverse()).isIdentity(test_precision())); // Verify implicit last row is initialized. VERIFY_IS_APPROX(Vector4(m3.row(3)), Vector4(0.0, 0.0, 0.0, 1.0)); + + VERIFY_IS_APPROX(t3.rotation(), t3.linear()); + if(Mode==Isometry) + VERIFY(t3.rotation().data()==t3.linear().data()); } EIGEN_DECLARE_TEST(geo_transformations) -- cgit v1.2.3