From 705023fd85f315d362ea6810d6a32f0c833ff6a8 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 19 Jul 2011 11:13:40 +0200 Subject: [PATCH] Translation * RotationBase now returns an isometric transformation. --- Eigen/src/Geometry/Translation.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Geometry/Translation.h b/Eigen/src/Geometry/Translation.h index d8fe50f98..7dfa23d85 100644 --- a/Eigen/src/Geometry/Translation.h +++ b/Eigen/src/Geometry/Translation.h @@ -54,6 +54,8 @@ public: typedef Matrix LinearMatrixType; /** corresponding affine transformation type */ typedef Transform AffineTransformType; + /** corresponding isometric transformation type */ + typedef Transform IsometryTransformType; protected: @@ -114,8 +116,8 @@ public: /** Concatenates a translation and a rotation */ template - inline AffineTransformType operator*(const RotationBase& r) const - { return *this * r.toRotationMatrix(); } + inline IsometryTransformType operator*(const RotationBase& r) const + { return *this * IsometryTransformType(r); } /** \returns the concatenation of a linear transformation \a l with the translation \a t */ // its a nightmare to define a templated friend function outside its declaration