diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2011-02-14 12:00:47 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2011-02-14 12:00:47 +0100 |
commit | ac465a089103f14974038191df7860f17756ec7d (patch) | |
tree | be2bf6a7f8b0c41d37a8be113f7f6b798432c344 /Eigen | |
parent | 211e1f8044aed132ae578e992eaad6473be301ed (diff) |
Improve the Transform interface in order to prevent T.rotation() = R from compiling.
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Geometry/Transform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 7fed2699c..d1986db9c 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -520,7 +520,7 @@ public: template<typename Derived> inline Transform operator*(const RotationBase<Derived,Dim>& r) const; - LinearMatrixType rotation() const; + const LinearMatrixType rotation() const; template<typename RotationMatrixType, typename ScalingMatrixType> void computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const; template<typename ScalingMatrixType, typename RotationMatrixType> @@ -967,7 +967,7 @@ inline Transform<Scalar,Dim,Mode,Options> Transform<Scalar,Dim,Mode,Options>::op * \sa computeRotationScaling(), computeScalingRotation(), class SVD */ template<typename Scalar, int Dim, int Mode, int Options> -typename Transform<Scalar,Dim,Mode,Options>::LinearMatrixType +const typename Transform<Scalar,Dim,Mode,Options>::LinearMatrixType Transform<Scalar,Dim,Mode,Options>::rotation() const { LinearMatrixType result; |