From 72f2c7eed5b7ca85c95ead287b92509229e32e89 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 25 Oct 2008 09:25:29 +0000 Subject: [PATCH] bugfix in Quaternion found by Daniel Stonier --- Eigen/src/Geometry/Quaternion.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index 0c732995b..9403181ca 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -117,7 +117,7 @@ public: /** Constructs and initializes the quaternion \f$ w+xi+yj+zk \f$ from * its four coefficients \a w, \a x, \a y and \a z. - * + * * \warning Note the order of the arguments: the real \a w coefficient first, * while internally the coefficients are stored in the following order: * [\c x, \c y, \c z, \c w] @@ -162,13 +162,13 @@ public: * \sa Quaternion::norm2(), MatrixBase::norm() */ inline Scalar norm() const { return m_coeffs.norm(); } - - /** Normalizes the quaternion \c *this + + /** Normalizes the quaternion \c *this * \sa normalized(), MatrixBase::normalize() */ - inline void normalize() { m_coeffs.normalize(); } + inline void normalize() { m_coeffs.normalize(); } /** \returns a normalized version of \c *this * \sa normalize(), MatrixBase::normalized() */ - inline Quaternion normalized() const { Quaternion(m_coeffs.normalized()); } + inline Quaternion normalized() const { return Quaternion(m_coeffs.normalized()); } /** \returns the dot product of \c *this and \a other * Geometrically speaking, the dot product of two unit quaternions