diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-19 15:38:37 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-19 15:38:37 +0100 |
commit | 661ef6c127fb608bd91078d23032613194d3d512 (patch) | |
tree | 9b697ab815a535d1802a934ce31be44c4c2b5ba0 /test | |
parent | 3f24dbf6f53325b3317a59187fb4697f72e52512 (diff) |
add regression unit test
Diffstat (limited to 'test')
-rw-r--r-- | test/geo_transformations.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index ac0c7ecbf..43a4aeedd 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -308,6 +308,14 @@ template<typename Scalar, int Mode> void transformations(void) t0.prescale(s0); t1 = Scaling(s0) * t1; VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); + + t0 = t3; + t0.scale(s0); + t1 = t3 * Scaling(s0,s0,s0); + VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); + t0.prescale(s0); + t1 = Scaling(s0,s0,s0) * t1; + VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); t0.setIdentity(); |