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;