aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_transformations.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-01-15 22:50:42 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-01-15 22:50:42 +0100
commit2b70b2f5708fdedf24c5d47768c2b24019c48311 (patch)
treee641843044a04fd169ab222c43e140a595c87b09 /test/geo_transformations.cpp
parent2c2c114995a1783883a882b83343a0533d2ebaf5 (diff)
Make Transform::rotation() an alias to Transform::linear() in the case of an Isometry
Diffstat (limited to 'test/geo_transformations.cpp')
-rwxr-xr-xtest/geo_transformations.cpp4
1 files changed, 4 insertions, 0 deletions
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<typename Scalar, int Mode, int Options> void transformations_no_scale()
VERIFY((m3 * m3.inverse()).isIdentity(test_precision<Scalar>()));
// 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)