Eigen  3.4.90 (git rev 67eeba6e720c5745abc77ae6c92ce0a44aa7b7ae)
Eigen::Map< Quaternion< Scalar_ >, Options_ > Class Template Reference

Detailed Description

template<typename Scalar_, int Options_>
class Eigen::Map< Quaternion< Scalar_ >, Options_ >

Expression of a quaternion from a memory buffer.

Template Parameters
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.

See also
class Map, class Quaternion, class QuaternionBase
+ Inheritance diagram for Eigen::Map< Quaternion< Scalar_ >, Options_ >:

Public Member Functions

 Map (Scalar *coeffs)
 
- Public Member Functions inherited from Eigen::QuaternionBase< Map< Quaternion< Scalar_ >, Options_ > >
Vector3 _transformVector (const Vector3 &v) const
 
internal::traits< Map< Quaternion< Scalar_ >, Options_ > >::Scalar angularDistance (const QuaternionBase< OtherDerived > &other) const
 
internal::cast_return_type< Map< Quaternion< Scalar_ >, Options_ >, Quaternion< NewScalarType > >::type cast () const
 
internal::traits< Map< Quaternion< Scalar_ >, Options_ > >::Coefficients & coeffs ()
 
const internal::traits< Map< Quaternion< Scalar_ >, Options_ > >::Coefficients & coeffs () const
 
Quaternion< Scalarconjugate () const
 
Scalar dot (const QuaternionBase< OtherDerived > &other) const
 
Quaternion< Scalarinverse () const
 
bool isApprox (const QuaternionBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
Scalar norm () const
 
void normalize ()
 
Quaternion< Scalarnormalized () const
 
bool operator!= (const QuaternionBase< OtherDerived > &other) const
 
Quaternion< typename internal::traits< Map< Quaternion< Scalar_ >, Options_ > >::Scalaroperator* (const QuaternionBase< OtherDerived > &other) const
 
Map< Quaternion< Scalar_ >, Options_ > & operator*= (const QuaternionBase< OtherDerived > &q)
 
Map< Quaternion< Scalar_ >, Options_ > & operator= (const AngleAxisType &aa)
 
Map< Quaternion< Scalar_ >, Options_ > & operator= (const MatrixBase< MatrixDerived > &xpr)
 
bool operator== (const QuaternionBase< OtherDerived > &other) const
 
Map< Quaternion< Scalar_ >, Options_ > & setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b)
 
QuaternionBasesetIdentity ()
 
Quaternion< typename internal::traits< Map< Quaternion< Scalar_ >, Options_ > >::Scalarslerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const
 
Scalar squaredNorm () const
 
Matrix3 toRotationMatrix () const
 
VectorBlock< Coefficients, 3 > vec ()
 
const VectorBlock< const Coefficients, 3 > vec () const
 
NonConstCoeffReturnType w ()
 
CoeffReturnType w () const
 
NonConstCoeffReturnType x ()
 
CoeffReturnType x () const
 
NonConstCoeffReturnType y ()
 
CoeffReturnType y () const
 
NonConstCoeffReturnType z ()
 
CoeffReturnType z () const
 
- Public Member Functions inherited from Eigen::RotationBase< Derived, Dim_ >
Derived inverse () const
 
RotationMatrixType matrix () const
 
template<typename OtherDerived >
internal::rotation_base_generic_product_selector< Derived, OtherDerived, OtherDerived::IsVectorAtCompileTime >::ReturnType operator* (const EigenBase< OtherDerived > &e) const
 
template<int Mode, int Options>
Transform< Scalar, Dim, Mode > operator* (const Transform< Scalar, Dim, Mode, Options > &t) const
 
Transform< Scalar, Dim, Isometryoperator* (const Translation< Scalar, Dim > &t) const
 
RotationMatrixType operator* (const UniformScaling< Scalar > &s) const
 
RotationMatrixType toRotationMatrix () const
 

Additional Inherited Members

- Public Types inherited from Eigen::QuaternionBase< Map< Quaternion< Scalar_ >, Options_ > >
typedef AngleAxis< ScalarAngleAxisType
 
typedef Matrix< Scalar, 3, 3 > Matrix3
 
typedef Matrix< Scalar, 3, 1 > Vector3
 
- Public Types inherited from Eigen::RotationBase< Derived, Dim_ >
typedef Matrix< Scalar, Dim, Dim > RotationMatrixType
 
typedef internal::traits< Derived >::Scalar Scalar
 
- Static Public Member Functions inherited from Eigen::QuaternionBase< Map< Quaternion< Scalar_ >, Options_ > >
static Quaternion< ScalarIdentity ()
 

Constructor & Destructor Documentation

◆ Map()

template<typename Scalar_ , int Options_>
Eigen::Map< Quaternion< Scalar_ >, Options_ >::Map ( Scalar *  coeffs)
inlineexplicit

Constructs a Mapped Quaternion object from the pointer coeffs

The pointer coeffs must reference the four coefficients of Quaternion in the following order:

*coeffs == {x, y, z, w}
CoeffReturnType z() const
Definition: Quaternion.h:72
CoeffReturnType y() const
Definition: Quaternion.h:70
CoeffReturnType w() const
Definition: Quaternion.h:74
CoeffReturnType x() const
Definition: Quaternion.h:68

If the template parameter Options_ is set to Aligned, then the pointer coeffs must be aligned.


The documentation for this class was generated from the following file: