The quaternion class used to represent 3D orientations and rotations
| _Scalar | the scalar type, i.e., the type of the coefficients |
This class represents a quaternion
that is a convenient representation of orientations and rotations of objects in three dimensions. Compared to other representations like Euler angles or 3x3 matrices, quatertions offer the following advantages:
The following two typedefs are provided for convenience:
Quaternionf for float Quaterniond for double 
Public Types | |
| typedef _Scalar | Scalar |
| typedef internal::traits < Quaternion< Scalar, _Options > >::Coefficients | Coefficients |
| typedef Base::AngleAxisType | AngleAxisType |
| the equivalent angle-axis type | |
Public Member Functions | |
| Quaternion () | |
| Default constructor leaving the quaternion uninitialized. | |
| Quaternion (Scalar w, Scalar x, Scalar y, Scalar z) | |
Constructs and initializes the quaternion from its four coefficients w, x, y and z. | |
| Quaternion (const Scalar *data) | |
| Constructs and initialize a quaternion from the array data. | |
| template<class Derived > | |
| EIGEN_STRONG_INLINE | Quaternion (const QuaternionBase< Derived > &other) |
| Copy constructor. | |
| Quaternion (const AngleAxisType &aa) | |
| Constructs and initializes a quaternion from the angle-axis aa. | |
| template<typename Derived > | |
| Quaternion (const MatrixBase< Derived > &other) | |
| Constructs and initializes a quaternion from either: | |
| Coefficients & | coeffs () |
| const Coefficients & | coeffs () const |
Protected Attributes | |
| Coefficients | m_coeffs |
Private Types | |
| typedef QuaternionBase < Quaternion< _Scalar, _Options > > | Base |
the equivalent angle-axis type
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
typedef QuaternionBase<Quaternion<_Scalar,_Options> > Eigen::Quaternion::Base [private] |
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
| typedef internal::traits<Quaternion<Scalar,_Options> >::Coefficients Eigen::Quaternion::Coefficients |
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
| typedef _Scalar Eigen::Quaternion::Scalar |
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
| Eigen::Quaternion::Quaternion | ( | ) | [inline] |
| Eigen::Quaternion::Quaternion | ( | const Scalar * | data | ) | [inline] |
| EIGEN_STRONG_INLINE Eigen::Quaternion::Quaternion | ( | const QuaternionBase< Derived > & | other | ) | [inline] |
| Eigen::Quaternion::Quaternion | ( | const AngleAxisType & | aa | ) | [inline, explicit] |
| Eigen::Quaternion::Quaternion | ( | const MatrixBase< Derived > & | other | ) | [inline, explicit] |
| Coefficients& Eigen::Quaternion::coeffs | ( | ) | [inline] |
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
| const Coefficients& Eigen::Quaternion::coeffs | ( | ) | const [inline] |
Reimplemented from Eigen::QuaternionBase< Quaternion< _Scalar, _Options > >.
Coefficients Eigen::Quaternion::m_coeffs [protected] |
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011 |