|
| Scalar | angularDistance (const Quaternion &other) const |
| |
| template<typename NewScalarType > |
ei_cast_return_type
< Quaternion, Quaternion
< NewScalarType > >::type | cast () const |
| |
| const Coefficients & | coeffs () const |
| |
| Coefficients & | coeffs () |
| |
| Quaternion | conjugate (void) const |
| |
| Scalar | dot (const Quaternion &other) const |
| |
| Quaternion | inverse (void) const |
| |
| bool | isApprox (const Quaternion &other, typename NumTraits< Scalar >::Real prec=precision< Scalar >()) const |
| |
| Scalar | norm () const |
| |
| void | normalize () |
| |
| Quaternion | normalized () const |
| |
| Quaternion | operator* (const Quaternion &q) const |
| |
|
template<typename Derived > |
| Vector3 | operator* (const MatrixBase< Derived > &vec) const |
| |
| template<typename Derived > |
| Quaternion< Scalar >::Vector3 | operator* (const MatrixBase< Derived > &v) const |
| |
| Quaternion & | operator*= (const Quaternion &q) |
| |
|
Quaternion & | operator= (const Quaternion &other) |
| |
| Quaternion & | operator= (const AngleAxisType &aa) |
| |
|
template<typename Derived > |
| Quaternion & | operator= (const MatrixBase< Derived > &m) |
| |
| template<typename Derived > |
| Quaternion< Scalar > & | operator= (const MatrixBase< Derived > &xpr) |
| |
| | Quaternion () |
| |
| | Quaternion (Scalar w, Scalar x, Scalar y, Scalar z) |
| |
| | Quaternion (const Quaternion &other) |
| |
| | Quaternion (const AngleAxisType &aa) |
| |
| template<typename Derived > |
| | Quaternion (const MatrixBase< Derived > &other) |
| |
| template<typename OtherScalarType > |
| | Quaternion (const Quaternion< OtherScalarType > &other) |
| |
|
template<typename Derived1 , typename Derived2 > |
| Quaternion & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| |
| template<typename Derived1 , typename Derived2 > |
| Quaternion< Scalar > & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| |
| Quaternion & | setIdentity () |
| |
| Quaternion | slerp (Scalar t, const Quaternion &other) const |
| |
| Scalar | squaredNorm () const |
| |
| Matrix3 | toRotationMatrix (void) const |
| |
| const Block< Coefficients, 3, 1 > | vec () const |
| |
| Block< Coefficients, 3, 1 > | vec () |
| |
| Scalar | w () const |
| |
| Scalar & | w () |
| |
| Scalar | x () const |
| |
| Scalar & | x () |
| |
| Scalar | y () const |
| |
| Scalar & | y () |
| |
| Scalar | z () const |
| |
| Scalar & | z () |
| |
|
const Quaternion< _Scalar > & | derived () const |
| |
|
Quaternion< _Scalar > & | derived () |
| |
| Quaternion< _Scalar > | inverse () const |
| |
| Transform< Scalar, Dim > | operator* (const Translation< Scalar, Dim > &t) const |
| |
| RotationMatrixType | operator* (const Scaling< Scalar, Dim > &s) const |
| |
| Transform< Scalar, Dim > | operator* (const Transform< Scalar, Dim > &t) const |
| |
| RotationMatrixType | toRotationMatrix () const |
| |
template<typename Scalar>
class Eigen::Quaternion< Scalar >
The quaternion class used to represent 3D orientations and rotations.
This is defined in the Geometry module.
#include <Eigen/Geometry>
- Parameters
-
| _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:
- compact storage (4 scalars)
- efficient to compose (28 flops),
- stable spherical interpolation
The following two typedefs are provided for convenience:
Quaternionf for float
Quaterniond for double
- See Also
- class AngleAxis, class Transform