Quaternion expression mapping a constant memory buffer. More...
#include <Quaternion.h>
Inheritance diagram for Map< const Quaternion< _Scalar >, _Options >:Public Types | |
| typedef AngleAxis< Scalar > | AngleAxisType |
| typedef Matrix< Scalar, 3, 3 > | Matrix3 |
| typedef Matrix< Scalar, Dim, Dim > | RotationMatrixType |
| typedef Matrix< Scalar, 3, 1 > | Vector3 |
Public Member Functions | |
| Vector3 | _transformVector (Vector3 v) const |
| Vector3 | _transformVector (Vector3 v) const |
| internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
| internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar | angularDistance (const QuaternionBase< OtherDerived > &other) const |
| internal::cast_return_type< Map< const Quaternion< _Scalar >, _Options >, Quaternion< NewScalarType > >::type | cast () const |
| internal::cast_return_type< Map< const Quaternion< _Scalar >, _Options >, Quaternion< NewScalarType > >::type | cast () const |
| internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Coefficients & | coeffs () |
| Quaternion< Scalar > | conjugate () const |
| Quaternion< Scalar > | conjugate () const |
| Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
| Scalar | dot (const QuaternionBase< OtherDerived > &other) const |
| Quaternion< Scalar > | inverse () const |
| Quaternion< Scalar > | inverse () const |
| bool | isApprox (const QuaternionBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| bool | isApprox (const QuaternionBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const |
| Map (const Scalar *coeffs) | |
| Map (PointerArgType data, const StrideType &stride=StrideType()) | |
| Map (PointerArgType data, Index rows, Index cols, const StrideType &stride=StrideType()) | |
| Map (PointerArgType data, Index size, const StrideType &stride=StrideType()) | |
| RotationMatrixType | matrix () const |
| Scalar | norm () const |
| Scalar | norm () const |
| void | normalize () |
| void | normalize () |
| Quaternion< Scalar > | normalized () const |
| Quaternion< Scalar > | normalized () const |
| internal::rotation_base_generic_product_selector< Map< const Quaternion< _Scalar >, _Options >, OtherDerived, OtherDerived::IsVectorAtCompileTime >::ReturnType | operator* (const EigenBase< OtherDerived > &e) const |
| Quaternion< typename internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar > | operator* (const QuaternionBase< OtherDerived > &other) const |
| Quaternion< typename internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar > | operator* (const QuaternionBase< OtherDerived > &other) const |
| Transform< Scalar, Dim, Mode > | operator* (const Transform< Scalar, Dim, Mode, Options > &t) const |
| Transform< Scalar, Dim, Isometry > | operator* (const Translation< Scalar, Dim > &t) const |
| RotationMatrixType | operator* (const UniformScaling< Scalar > &s) const |
| Map< const Quaternion< _Scalar >, _Options > & | operator*= (const QuaternionBase< OtherDerived > &q) |
| Map< const Quaternion< _Scalar >, _Options > & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| Map< const Quaternion< _Scalar >, _Options > & | setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b) |
| QuaternionBase & | setIdentity () |
| QuaternionBase & | setIdentity () |
| Quaternion< Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| Quaternion< Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| Quaternion< typename internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| Quaternion< typename internal::traits< Map< const Quaternion< _Scalar >, _Options > >::Scalar > | slerp (Scalar t, const QuaternionBase< OtherDerived > &other) const |
| Scalar | squaredNorm () const |
| Scalar | squaredNorm () const |
| Matrix3 | toRotationMatrix () const |
| Matrix3 | toRotationMatrix () const |
| VectorBlock< Coefficients, 3 > | vec () |
| VectorBlock< Coefficients, 3 > | vec () |
| const VectorBlock< const Coefficients, 3 > | vec () const |
| const VectorBlock< const Coefficients, 3 > | vec () const |
| Scalar & | w () |
| Scalar & | w () |
| Scalar | w () const |
| Scalar | w () const |
| Scalar & | x () |
| Scalar & | x () |
| Scalar | x () const |
| Scalar | x () const |
| Scalar & | y () |
| Scalar & | y () |
| Scalar | y () const |
| Scalar | y () const |
| Scalar & | z () |
| Scalar & | z () |
| Scalar | z () const |
| Scalar | z () const |
Static Public Member Functions | |
| static Quaternion< Scalar > | Identity () |
| static Quaternion< Scalar > | Identity () |
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.
|
inherited |
the equivalent angle-axis type
|
inherited |
corresponding linear transformation matrix type
|
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.
|
inline |
Constructor in the fixed-size case.
| data | pointer to the array to map |
| stride | optional Stride object, passing the strides. |
|
inline |
Constructor in the dynamic-size vector case.
| data | pointer to the array to map |
| size | the size of the vector expression |
| stride | optional Stride object, passing the strides. |
|
inline |
Constructor in the dynamic-size matrix case.
| data | pointer to the array to map |
| rows | the number of rows of the matrix expression |
| cols | the number of columns of the matrix expression |
| stride | optional Stride object, passing the strides. |
return the result vector of v through the rotation
Rotation of a vector by a quaternion.
|
inlineinherited |
return the result vector of v through the rotation
Rotation of a vector by a quaternion.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
*this with scalar type casted to NewScalarType Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
|
inlineinherited |
*this with scalar type casted to NewScalarType Note that if NewScalarType is equal to the current scalar type of *this then this function smartly returns a const reference to *this.
|
inlineinherited |
|
inherited |
*this which is equal to the multiplicative inverse if the quaternion is normalized. The conjugate of a quaternion represents the opposite rotation.
|
inlineinherited |
*this which is equal to the multiplicative inverse if the quaternion is normalized. The conjugate of a quaternion represents the opposite rotation.
|
inlineinherited |
*this and other Geometrically speaking, the dot product of two unit quaternions corresponds to the cosine of half the angle between the two rotations.
|
inlineinherited |
*this and other Geometrically speaking, the dot product of two unit quaternions corresponds to the cosine of half the angle between the two rotations.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
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.
|
inlineinherited |
*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.
|
inlineinherited |
true if *this is approximately equal to other, within the precision determined by prec.
|
inlineinherited |
true if *this is approximately equal to other, within the precision determined by prec.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Normalizes the quaternion *this
|
inlineinherited |
Normalizes the quaternion *this
|
inlineinherited |
*this
|
inlineinherited |
*this
|
inherited |
*this with a generic expression e e can be:
|
inlineinherited |
*this with a generic expression e e can be:
|
inlineinherited |
|
inlineinherited |
|
inherited |
*this with a transformation t
|
inlineinherited |
*this with a transformation t
|
inherited |
*this with a translation t
|
inlineinherited |
*this with a translation t
|
inherited |
*this with a uniform scaling s
|
inlineinherited |
*this with a uniform scaling s
|
inline |
|
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.
|
inlineinherited |
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.
|
inlineinherited |
|
inlineinherited |
|
inherited |
*this t in [0;1] see http://en.wikipedia.org/wiki/Slerp
|
inherited |
*this t in [0;1] see http://en.wikipedia.org/wiki/Slerp
|
inherited |
*this and other at the parameter t
|
inherited |
*this and other at the parameter t
|
inlineinherited |
|
inlineinherited |
|
inherited |
Convert the quaternion to a 3x3 rotation matrix. The quaternion is required to be normalized, otherwise the result is undefined.
|
inlineinherited |
Convert the quaternion to a 3x3 rotation matrix. The quaternion is required to be normalized, otherwise the result is undefined.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
w coefficient
|
inlineinherited |
w coefficient
|
inlineinherited |
w coefficient
|
inlineinherited |
w coefficient
|
inlineinherited |
x coefficient
|
inlineinherited |
x coefficient
|
inlineinherited |
x coefficient
|
inlineinherited |
x coefficient
|
inlineinherited |
y coefficient
|
inlineinherited |
y coefficient
|
inlineinherited |
y coefficient
|
inlineinherited |
y coefficient
|
inlineinherited |
z coefficient
|
inlineinherited |
z coefficient
|
inlineinherited |
z coefficient
|
inlineinherited |
z coefficient