diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-02 09:27:41 +0100 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-02-02 09:27:41 +0100 |
commit | 7b2dd988faf589ce194002ffffdfa6efca656557 (patch) | |
tree | edf97bc267daa31241eadf9d66d82e88b50f9faa /Eigen/src/Geometry | |
parent | 7c41fb66f864b7584eac12247fb3945e2ce99f26 (diff) |
Fixes #89.
Added regression test.
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r-- | Eigen/src/Geometry/AngleAxis.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Eigen/src/Geometry/AngleAxis.h b/Eigen/src/Geometry/AngleAxis.h index da698bbfe..284c60a74 100644 --- a/Eigen/src/Geometry/AngleAxis.h +++ b/Eigen/src/Geometry/AngleAxis.h @@ -189,6 +189,16 @@ AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const MatrixBase<Derived>& mat) return *this = QuaternionType(mat); } +/** +* \brief Sets \c *this from a 3x3 rotation matrix. +**/ +template<typename Scalar> +template<typename Derived> +AngleAxis<Scalar>& AngleAxis<Scalar>::fromRotationMatrix(const MatrixBase<Derived>& mat) +{ + return *this = QuaternionType(mat); +} + /** Constructs and \returns an equivalent 3x3 rotation matrix. */ template<typename Scalar> |