Quaternion expression mapping a constant 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 |
| 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 | |
Public Member Functions | |
| EIGEN_STRONG_INLINE | Map (const Scalar *coeffs) |
| Constructs a Mapped Quaternion object from the pointer 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 () |
| internal::traits< Derived > ::Coefficients & | coeffs () |
| 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 |
| Derived & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| EIGEN_STRONG_INLINE Quaternion < Scalar > | operator* (const QuaternionBase< OtherDerived > &q) const |
| EIGEN_STRONG_INLINE Derived & | 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 | |
| internal::cast_return_type < Derived, Quaternion < NewScalarType > >::type | cast () const |
Static Public Member Functions | |
| static Quaternion< Scalar > | Identity () |
Protected Attributes | |
| const Coefficients | m_coeffs |
Private Types | |
| typedef QuaternionBase< Map < const Quaternion< _Scalar > , _Options > > | Base |
typedef AngleAxis<Scalar> Eigen::QuaternionBase::AngleAxisType [inherited] |
typedef QuaternionBase<Map<const Quaternion<_Scalar>, _Options> > Eigen::Map< const Quaternion< _Scalar >, _Options >::Base [private] |
Reimplemented from Eigen::QuaternionBase< Map< const Quaternion< _Scalar >, _Options > >.
| typedef internal::traits<Map>::Coefficients Eigen::Map< const Quaternion< _Scalar >, _Options >::Coefficients |
Reimplemented from Eigen::QuaternionBase< Map< const Quaternion< _Scalar >, _Options > >.
typedef Matrix<Scalar,3,3> Eigen::QuaternionBase::Matrix3 [inherited] |
typedef NumTraits<Scalar>::Real Eigen::QuaternionBase::RealScalar [inherited] |
| typedef _Scalar Eigen::Map< const Quaternion< _Scalar >, _Options >::Scalar |
Reimplemented from Eigen::QuaternionBase< Map< const Quaternion< _Scalar >, _Options > >.
typedef Matrix<Scalar,3,1> Eigen::QuaternionBase::Vector3 [inherited] |
| EIGEN_STRONG_INLINE Eigen::Map< const Quaternion< _Scalar >, _Options >::Map | ( | const 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.
return the result vector of v through the rotation
Rotation of a vector by a quaternion.
| Scalar Eigen::QuaternionBase::angularDistance | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inherited] |
| internal::cast_return_type<Derived,Quaternion<NewScalarType> >::type Eigen::QuaternionBase::cast | ( | ) | const [inline, inherited] |
| internal::traits<Derived>::Coefficients& Eigen::QuaternionBase::coeffs | ( | ) | [inline, inherited] |
| const Coefficients& Eigen::Map< const Quaternion< _Scalar >, _Options >::coeffs | ( | ) | const [inline] |
Reimplemented from Eigen::QuaternionBase< Map< const Quaternion< _Scalar >, _Options > >.
| Quaternion<Scalar> Eigen::QuaternionBase::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.| Scalar Eigen::QuaternionBase::dot | ( | const QuaternionBase< OtherDerived > & | other | ) | const [inline, inherited] |
| static Quaternion<Scalar> Eigen::QuaternionBase::Identity | ( | ) | [inline, static, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase::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.| bool Eigen::QuaternionBase::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.| Scalar Eigen::QuaternionBase::norm | ( | ) | const [inline, inherited] |
| void Eigen::QuaternionBase::normalize | ( | void | ) | [inline, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase::normalized | ( | ) | const [inline, inherited] |
*this | EIGEN_STRONG_INLINE Quaternion<Scalar> Eigen::QuaternionBase::operator* | ( | const QuaternionBase< OtherDerived > & | q | ) | const [inherited] |
| EIGEN_STRONG_INLINE Derived& Eigen::QuaternionBase::operator*= | ( | const QuaternionBase< OtherDerived > & | q | ) | [inherited] |
| Derived& Eigen::QuaternionBase::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::setIdentity | ( | ) | [inline, inherited] |
| Quaternion<Scalar> Eigen::QuaternionBase::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::squaredNorm | ( | ) | const [inline, inherited] |
| Matrix3 Eigen::QuaternionBase::toRotationMatrix | ( | ) | const [inherited] |
Convert the quaternion to a 3x3 rotation matrix.
The quaternion is required to be normalized, otherwise the result is undefined.
| const VectorBlock<const Coefficients,3> Eigen::QuaternionBase::vec | ( | ) | const [inline, inherited] |
| VectorBlock<Coefficients,3> Eigen::QuaternionBase::vec | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase::w | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase::w | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase::x | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase::x | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase::y | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase::y | ( | ) | [inline, inherited] |
| Scalar Eigen::QuaternionBase::z | ( | ) | const [inline, inherited] |
| Scalar& Eigen::QuaternionBase::z | ( | ) | [inline, inherited] |
const Coefficients Eigen::Map< const Quaternion< _Scalar >, _Options >::m_coeffs [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |