diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2011-07-19 11:13:40 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2011-07-19 11:13:40 +0200 |
commit | 705023fd85f315d362ea6810d6a32f0c833ff6a8 (patch) | |
tree | f79c6a6747adb3cde79c34d0f1af5a272613253e | |
parent | 3fb65734abb04dfb616284066a7fc09bc729b83c (diff) |
Translation * RotationBase now returns an isometric transformation.
-rw-r--r-- | Eigen/src/Geometry/Translation.h | 6 |
1 files 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<Scalar,Dim,Dim> LinearMatrixType; /** corresponding affine transformation type */ typedef Transform<Scalar,Dim,Affine> AffineTransformType; + /** corresponding isometric transformation type */ + typedef Transform<Scalar,Dim,Isometry> IsometryTransformType; protected: @@ -114,8 +116,8 @@ public: /** Concatenates a translation and a rotation */ template<typename Derived> - inline AffineTransformType operator*(const RotationBase<Derived,Dim>& r) const - { return *this * r.toRotationMatrix(); } + inline IsometryTransformType operator*(const RotationBase<Derived,Dim>& 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 |