diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-19 15:55:35 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-19 15:55:35 +0000 |
commit | a3fad2e3c30d69555a1c7d75c3a7c8a336b22888 (patch) | |
tree | f669e853d0b822ad2672891732635ae8c135124f /test | |
parent | 5f6fbaa0e72d85a3904c7796490ada89d8acd4e4 (diff) |
Transform*Transform should return Transform
unit test compiles again
Diffstat (limited to 'test')
-rw-r--r-- | test/geometry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/geometry.cpp b/test/geometry.cpp index 9572535d7..eb5301055 100644 --- a/test/geometry.cpp +++ b/test/geometry.cpp @@ -186,7 +186,7 @@ template<typename Scalar> void geometry(void) Transform3 t4; t4 = aa3; VERIFY_IS_APPROX(t3.matrix(), t4.matrix()); - t4.rotate(AngleAxisx(-a,v3)); + t4.rotate(AngleAxisx(-a3,v3)); VERIFY_IS_APPROX(t4.matrix(), Matrix4::Identity()); v3 = Vector3::Random(); @@ -222,7 +222,7 @@ template<typename Scalar> void geometry(void) t21.setIdentity(); t21.linear() = Rotation2D<Scalar>(-a).toRotationMatrix(); VERIFY( (t20.fromPositionOrientationScale(v20,a,v21) - * (t21.prescale(v21.cwise().inverse()).translate(-v20))).isIdentity(test_precision<Scalar>()) ); + * (t21.prescale(v21.cwise().inverse()).translate(-v20))).matrix().isIdentity(test_precision<Scalar>()) ); // Transform - new API // 3D |