From ac465a089103f14974038191df7860f17756ec7d Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Mon, 14 Feb 2011 12:00:47 +0100 Subject: [PATCH] Improve the Transform interface in order to prevent T.rotation() = R from compiling. --- Eigen/src/Geometry/Transform.h | 4 ++-- 1 file 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 inline Transform operator*(const RotationBase& r) const; - LinearMatrixType rotation() const; + const LinearMatrixType rotation() const; template void computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const; template @@ -967,7 +967,7 @@ inline Transform Transform::op * \sa computeRotationScaling(), computeScalingRotation(), class SVD */ template -typename Transform::LinearMatrixType +const typename Transform::LinearMatrixType Transform::rotation() const { LinearMatrixType result;