Expression of a quaternion from a memory buffer.
| _Scalar | the type of the Quaternion coefficients |
| _Options | see class Map |
This is a specialization of class Map for Quaternion. This class allows to view a 4 scalar memory buffer as an Eigen's Quaternion object.

Public Types | |
| typedef _Scalar | Scalar |
| the scalar type of the coefficients | |
| typedef internal::traits< Map > ::Coefficients | Coefficients |
| enum | |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef Matrix< Scalar, 3, 1 > | Vector3 |
| the type of a 3D vector | |
| typedef Matrix< Scalar, 3, 3 > | Matrix3 |
| the equivalent rotation matrix type | |
| typedef AngleAxis< Scalar > | AngleAxisType |
| the equivalent angle-axis type | |
| enum | |
| typedef Matrix< Scalar, Dim, Dim > | RotationMatrixType |
| corresponding linear transformation matrix type | |
| typedef Matrix< Scalar, Dim, 1 > | VectorType |
Public Member Functions | |
| EIGEN_STRONG_INLINE | Map (Scalar *coeffs) |
| Constructs a Mapped Quaternion object from the pointer coeffs. | |
| Coefficients & | coeffs () |
| const Coefficients & | coeffs () const |
| Scalar | x () const |
| Scalar & | x () |
| Scalar | y () const |
| Scalar & | y () |
| Scalar | z () const |
| Scalar & | z () |
| Scalar | w () const |
| Scalar & | w () |
| const VectorBlock< const Coefficients, 3 > | vec () const |
| VectorBlock< Coefficients, 3 > | vec () |
| QuaternionBase & | setIdentity () |
| Scalar | squaredNorm () const |
| Scalar | norm () const |
| void | normalize () |
Normalizes the quaternion *this. | |
| Quaternion< Scalar > | normalized () const |
| Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
| Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
| Matrix3 | toRotationMatrix () const |
| Map< Quaternion< _Scalar > , _Options > & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| EIGEN_STRONG_INLINE Quaternion < Scalar > | operator* (const QuaternionBase< OtherDerived > &q) const |
| Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
| RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector < Map< Quaternion< _Scalar > , _Options >, OtherDerived, OtherDerived::IsVectorAtCompileTime > ::ReturnType | operator* (const EigenBase< OtherDerived > &e) const |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| EIGEN_STRONG_INLINE Map < Quaternion< _Scalar > , _Options > & | operator*= (const QuaternionBase< OtherDerived > &q) |
| Quaternion< Scalar > | inverse () const |
| Quaternion< Scalar > | conjugate () const |
| Quaternion< Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| bool | isApprox (const QuaternionBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| EIGEN_STRONG_INLINE Vector3 | _transformVector (Vector3 v) const |
| return the result vector of v through the rotation | |
| VectorType | _transformVector (const OtherVectorType &v) const |
| internal::cast_return_type < Map< Quaternion< _Scalar > , _Options >, Quaternion < NewScalarType > >::type | cast () const |
| const Map< Quaternion< _Scalar > , _Options > & | derived () const |
| Map< Quaternion< _Scalar > , _Options > & | derived () |
| RotationMatrixType | matrix () const |
Static Public Member Functions | |
| static Quaternion< Scalar > | Identity () |
Protected Attributes | |
| Coefficients | m_coeffs |
Private Types | |
| typedef QuaternionBase< Map < Quaternion< _Scalar > , _Options > > | Base |
Friends | |
| RotationMatrixType | operator* (const EigenBase< OtherDerived > &l, const Map< Quaternion< _Scalar >, _Options > &r) |
| Transform< Scalar, Dim, Affine > | operator* (const DiagonalMatrix< Scalar, Dim > &l, const Map< Quaternion< _Scalar >, _Options > &r) |
typedef AngleAxis<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::AngleAxisType [inherited] |
typedef QuaternionBase<Map<Quaternion<_Scalar>, _Options> > Eigen::Map< Quaternion< _Scalar >, _Options >::Base [private] |
Reimplemented from Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >.
| typedef internal::traits<Map>::Coefficients Eigen::Map< Quaternion< _Scalar >, _Options >::Coefficients |
Reimplemented from Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >.
typedef Matrix<Scalar,3,3> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::Matrix3 [inherited] |
typedef NumTraits<Scalar>::Real Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::RealScalar [inherited] |
typedef Matrix<Scalar,Dim,Dim> Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::RotationMatrixType [inherited] |
| typedef _Scalar Eigen::Map< Quaternion< _Scalar >, _Options >::Scalar |
the scalar type of the coefficients
Reimplemented from Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >.
typedef Matrix<Scalar,3,1> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::Vector3 [inherited] |
typedef Matrix<Scalar,Dim,1> Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::VectorType [inherited] |
| EIGEN_STRONG_INLINE Eigen::Map< Quaternion< _Scalar >, _Options >::Map | ( | Scalar * | coeffs | ) | [inline] |
Constructs a Mapped Quaternion object from the pointer coeffs.
The pointer coeffs must reference the four coeffecients of Quaternion in the following order:
If the template parameter _Options is set to Aligned, then the pointer coeffs must be aligned.
| EIGEN_STRONG_INLINE Vector3 Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::_transformVector | ( | Vector3 | v | ) | const [inherited] |
return the result vector of v through the rotation
Rotation of a vector by a quaternion.
| VectorType Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::_transformVector | ( | const OtherVectorType & | v | ) | const [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::angularDistance | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inherited] |
| internal::cast_return_type<Map< Quaternion< _Scalar >, _Options > ,Quaternion<NewScalarType> >::type Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::cast | ( | ) | const [inline, inherited] |
| Coefficients& Eigen::Map< Quaternion< _Scalar >, _Options >::coeffs | ( | ) | [inline] |
Reimplemented from Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >.
| const Coefficients& Eigen::Map< Quaternion< _Scalar >, _Options >::coeffs | ( | ) | const [inline] |
Reimplemented from Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >.
| Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::conjugate | ( | ) | const [inherited] |
*this which is equal to the multiplicative inverse if the quaternion is normalized. The conjugate of a quaternion represents the opposite rotation.| const Map< Quaternion< _Scalar >, _Options > & Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::derived | ( | ) | const [inline, inherited] |
| Map< Quaternion< _Scalar >, _Options > & Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::derived | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::dot | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inline, inherited] |
| static Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::Identity | ( | ) | [inline, static, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::inverse | ( | ) | const [inherited] |
*this Note that in most cases, i.e., if you simply want the opposite rotation, and/or the quaternion is normalized, then it is enough to use the conjugate.Reimplemented from Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options >, 3 >.
| bool Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::isApprox | ( | const QuaternionBase< OtherDerived > & | other, |
| RealScalar | prec = NumTraits<Scalar>::dummy_precision() |
||
| ) | const [inline, inherited] |
true if *this is approximately equal to other, within the precision determined by prec.| RotationMatrixType Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::matrix | ( | ) | const [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::norm | ( | ) | const [inline, inherited] |
| void Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::normalize | ( | void | ) | [inline, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::normalized | ( | ) | const [inline, inherited] |
*this | Transform<Scalar,Dim,Mode> Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::operator* | ( | const Transform< Scalar, Dim, Mode, Options > & | t | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::operator* | ( | const QuaternionBase< OtherDerived > & | q | ) | const [inherited] |
| Transform<Scalar,Dim,Isometry> Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::operator* | ( | const Translation< Scalar, Dim > & | t | ) | const [inline, inherited] |
| RotationMatrixType Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::operator* | ( | const UniformScaling< Scalar > & | s | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE internal::rotation_base_generic_product_selector<Map< Quaternion< _Scalar >, _Options > ,OtherDerived,OtherDerived::IsVectorAtCompileTime>::ReturnType Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options > , _Dim >::operator* | ( | const EigenBase< OtherDerived > & | e | ) | const [inline, inherited] |
| EIGEN_STRONG_INLINE Map< Quaternion< _Scalar >, _Options > & Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::operator*= | ( | const QuaternionBase< OtherDerived > & | q | ) | [inherited] |
| Map< Quaternion< _Scalar >, _Options > & Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::setFromTwoVectors | ( | const MatrixBase< Derived1 > & | a, |
| const MatrixBase< Derived2 > & | b | ||
| ) | [inherited] |
Sets *this to be a quaternion representing a rotation between the two arbitrary vectors a and b.
In other words, the built rotation represent a rotation sending the line of direction a to the line of direction b, both lines passing through the origin.
*this.Note that the two input vectors do not have to be normalized, and do not need to have the same norm.
| QuaternionBase& Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::setIdentity | ( | ) | [inline, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::slerp | ( | Scalar | t, |
| const QuaternionBase< OtherDerived > & | other | ||
| ) | const [inherited] |
*this t in [0;1] see http://en.wikipedia.org/wiki/Slerp*this and other at the parameter t | Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::squaredNorm | ( | ) | const [inline, inherited] |
| Matrix3 Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::toRotationMatrix | ( | ) | const [inherited] |
Convert the quaternion to a 3x3 rotation matrix.
The quaternion is required to be normalized, otherwise the result is undefined.
Reimplemented from Eigen::RotationBase< Map< Quaternion< _Scalar >, _Options >, 3 >.
| VectorBlock<Coefficients,3> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::vec | ( | ) | [inline, inherited] |
| const VectorBlock<const Coefficients,3> Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::vec | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::w | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::w | ( | ) | const [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::x | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::x | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::y | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::y | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::z | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase< Map< Quaternion< _Scalar >, _Options > >::z | ( | ) | [inline, inherited] |
| RotationMatrixType operator* | ( | const EigenBase< OtherDerived > & | l, |
| const Map< Quaternion< _Scalar >, _Options > & | r | ||
| ) | [friend, inherited] |
| Transform<Scalar,Dim,Affine> operator* | ( | const DiagonalMatrix< Scalar, Dim > & | l, |
| const Map< Quaternion< _Scalar >, _Options > & | r | ||
| ) | [friend, inherited] |
Coefficients Eigen::Map< Quaternion< _Scalar >, _Options >::m_coeffs [protected] |
| Page generated by Doxygen 1.7.4 for MRPT 0.9.5 SVN:2717 at Sun Oct 16 16:08:03 PDT 2011 | Hosted on: |