diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-02-12 13:37:23 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-02-12 13:37:23 +0100 |
commit | 31c63ef0b42ae9d6249281c70a0268ddb4eba10d (patch) | |
tree | 0839eeb392706b121d2694b22408306cb6891a79 /test/geo_transformations.cpp | |
parent | e170e7070babbdb164cbda9289419e264d3c2645 (diff) |
fix compilation of Transform * UniformScaling
Diffstat (limited to 'test/geo_transformations.cpp')
-rw-r--r-- | test/geo_transformations.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/geo_transformations.cpp b/test/geo_transformations.cpp index 35ae67ebe..ee3030b5d 100644 --- a/test/geo_transformations.cpp +++ b/test/geo_transformations.cpp @@ -279,6 +279,13 @@ template<typename Scalar, int Mode, int Options> void transformations() t1 = Eigen::Scaling(s0,s0,s0) * t1; VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); + t0 = t3; + t0.scale(s0); + t1 = t3 * Eigen::Scaling(s0); + VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); + t0.prescale(s0); + t1 = Eigen::Scaling(s0) * t1; + VERIFY_IS_APPROX(t0.matrix(), t1.matrix()); t0.setIdentity(); t0.prerotate(q1).prescale(v0).pretranslate(v0); |