aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-12-04 12:26:56 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-12-04 12:26:56 +0100
commit7aad4341609260356845b16057fd581302c5072f (patch)
tree128e53b43c51fadeb5228dc26db7885c13123c1b /Eigen/src/Geometry
parente12f5adbdeee6281af8a534652c3d82638630419 (diff)
fix compilation and clean a bit Map<Quaternion>
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r--Eigen/src/Geometry/Quaternion.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h
index a6bdb2408..7f102c942 100644
--- a/Eigen/src/Geometry/Quaternion.h
+++ b/Eigen/src/Geometry/Quaternion.h
@@ -152,9 +152,9 @@ public:
/** \returns the conjugated quaternion */
Quaternion<Scalar> conjugate() const;
- /** \returns an interpolation for a constant motion between \a other and \c *this
+ /** \returns an interpolation for a constant motion between \a other and \c *this
* \a t in [0;1]
- * see http://en.wikipedia.org/wiki/Slerp
+ * see http://en.wikipedia.org/wiki/Slerp
*/
template<class OtherDerived> Quaternion<Scalar> slerp(Scalar t, const QuaternionBase<OtherDerived>& other) const;
@@ -221,7 +221,7 @@ struct ei_traits<Quaternion<_Scalar> >
template<typename _Scalar>
class Quaternion : public QuaternionBase<Quaternion<_Scalar> >{
typedef QuaternionBase<Quaternion<_Scalar> > Base;
-public:
+public:
typedef _Scalar Scalar;
EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Quaternion<Scalar>)
@@ -304,21 +304,14 @@ template<typename _Scalar, int PacketAccess>
class Map<Quaternion<_Scalar>, PacketAccess >
: public QuaternionBase<Map<Quaternion<_Scalar>, PacketAccess> >
{
- public:
- typedef _Scalar Scalar;
- typedef Map<Quaternion<Scalar>, PacketAccess > MapQuat;
-
- private:
- Map<Quaternion<Scalar>, PacketAccess >();
- Map<Quaternion<Scalar>, PacketAccess >(const Map<Quaternion<Scalar>, PacketAccess>&);
-
typedef QuaternionBase<Map<Quaternion<_Scalar>, PacketAccess> > Base;
+
public:
- EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(MapQuat)
+ typedef _Scalar Scalar;
+ typedef typename ei_traits<Map>::Coefficients Coefficients;
+ EIGEN_INHERIT_ASSIGNMENT_EQUAL_OPERATOR(Map)
using Base::operator*=;
- typedef typename ei_traits<Map<Quaternion<Scalar>, PacketAccess> >::Coefficients Coefficients;
-
/** Constructs a Mapped Quaternion object from the pointer \a coeffs
*
* The pointer \a coeffs must reference the four coeffecients of Quaternion in the following order: