Eigen  3.4.90 (git rev 9589cc4e7fd8e4538bedef80dd36c7738977a8be)
 
Loading...
Searching...
No Matches
Eigen::Map< const Quaternion< Scalar_ >, Options_ > Class Template Reference

#include <Eigen/src/Geometry/Quaternion.h>

Detailed Description

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

Quaternion expression mapping a constant 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< const Quaternion< Scalar_ >, Options_ >:

Public Member Functions

 Map (const Scalar *coeffs)
 
 Map (PointerArgType dataPtr, const Stride< 0, 0 > &stride=Stride< 0, 0 >())
 
 Map (PointerArgType dataPtr, Index rows, Index cols, const Stride< 0, 0 > &stride=Stride< 0, 0 >())
 
 Map (PointerArgType dataPtr, Index size, const Stride< 0, 0 > &stride=Stride< 0, 0 >())
 
Map< const Quaternion< Scalar_ >, Options_ > & operator*= (const QuaternionBase< OtherDerived > &q)
 
- Public Member Functions inherited from Eigen::QuaternionBase< Map< const Quaternion< Scalar_ >, Options_ > >
Vector3 _transformVector (const Vector3 &v) const
 
Vector3 _transformVector (const 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 ()
 
internal::traits< Map< const Quaternion< Scalar_ >, Options_ > >::Coefficients & coeffs ()
 
const internal::traits< Map< const Quaternion< Scalar_ >, Options_ > >::Coefficients & coeffs () const
 
const internal::traits< Map< const Quaternion< Scalar_ >, Options_ > >::Coefficients & coeffs () const
 
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, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
bool isApprox (const QuaternionBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
 
Scalar norm () const
 
Scalar norm () const
 
void normalize ()
 
void normalize ()
 
Quaternion< Scalar > normalized () const
 
Quaternion< Scalar > normalized () const
 
bool operator!= (const QuaternionBase< OtherDerived > &other) const
 
bool operator!= (const QuaternionBase< OtherDerived > &other) 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, Isometryoperator* (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_ > & operator= (const AngleAxisType &aa)
 
Map< const Quaternion< Scalar_ >, Options_ > & operator= (const MatrixBase< MatrixDerived > &xpr)
 
Map< const Quaternion< Scalar_ >, Options_ > & operator= (const MatrixBase< MatrixDerived > &xpr)
 
bool operator== (const QuaternionBase< OtherDerived > &other) const
 
bool operator== (const QuaternionBase< OtherDerived > &other) const
 
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)
 
QuaternionBasesetIdentity ()
 
QuaternionBasesetIdentity ()
 
Quaternion< typename internal::traits< Map< const Quaternion< Scalar_ >, Options_ > >::Scalar > slerp (const Scalar &t, const QuaternionBase< OtherDerived > &other) const
 
Quaternion< typename internal::traits< Map< const Quaternion< Scalar_ >, Options_ > >::Scalar > slerp (const 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
 
EIGEN_CONSTEXPR NonConstCoeffReturnType w ()
 
EIGEN_CONSTEXPR NonConstCoeffReturnType w ()
 
EIGEN_CONSTEXPR CoeffReturnType w () const
 
EIGEN_CONSTEXPR CoeffReturnType w () const
 
EIGEN_CONSTEXPR NonConstCoeffReturnType x ()
 
EIGEN_CONSTEXPR NonConstCoeffReturnType x ()
 
EIGEN_CONSTEXPR CoeffReturnType x () const
 
EIGEN_CONSTEXPR CoeffReturnType x () const
 
EIGEN_CONSTEXPR NonConstCoeffReturnType y ()
 
EIGEN_CONSTEXPR NonConstCoeffReturnType y ()
 
EIGEN_CONSTEXPR CoeffReturnType y () const
 
EIGEN_CONSTEXPR CoeffReturnType y () const
 
EIGEN_CONSTEXPR NonConstCoeffReturnType z ()
 
EIGEN_CONSTEXPR NonConstCoeffReturnType z ()
 
EIGEN_CONSTEXPR CoeffReturnType z () const
 
EIGEN_CONSTEXPR 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< const Quaternion< Scalar_ >, Options_ > >
typedef AngleAxis< Scalar > AngleAxisType
 
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< const Quaternion< Scalar_ >, Options_ > >
static Quaternion< Scalar > Identity ()
 
static Quaternion< Scalar > Identity ()
 

Constructor & Destructor Documentation

◆ Map() [1/4]

template<typename Scalar_, int Options_>
Eigen::Map< const Quaternion< Scalar_ >, Options_ >::Map ( const 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}
EIGEN_CONSTEXPR CoeffReturnType x() const
Definition Quaternion.h:60
EIGEN_CONSTEXPR CoeffReturnType w() const
Definition Quaternion.h:66
EIGEN_CONSTEXPR CoeffReturnType y() const
Definition Quaternion.h:62
EIGEN_CONSTEXPR CoeffReturnType z() const
Definition Quaternion.h:64

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

◆ Map() [2/4]

Eigen::Map< const Quaternion< Scalar_ >, MapOptions, Stride<0, 0> >::Map ( PointerArgType dataPtr,
const Stride<0, 0> & stride = StrideType() )
inlineexplicit

Constructor in the fixed-size case.

Parameters
dataPtrpointer to the array to map
strideoptional Stride object, passing the strides.

◆ Map() [3/4]

Eigen::Map< const Quaternion< Scalar_ >, MapOptions, Stride<0, 0> >::Map ( PointerArgType dataPtr,
Index size,
const Stride<0, 0> & stride = StrideType() )
inline

Constructor in the dynamic-size vector case.

Parameters
dataPtrpointer to the array to map
sizethe size of the vector expression
strideoptional Stride object, passing the strides.

◆ Map() [4/4]

Eigen::Map< const Quaternion< Scalar_ >, MapOptions, Stride<0, 0> >::Map ( PointerArgType dataPtr,
Index rows,
Index cols,
const Stride<0, 0> & stride = StrideType() )
inline

Constructor in the dynamic-size matrix case.

Parameters
dataPtrpointer to the array to map
rowsthe number of rows of the matrix expression
colsthe number of columns of the matrix expression
strideoptional Stride object, passing the strides.

Member Function Documentation

◆ operator*=()

template<typename Scalar_, int Options_>
Map< const Quaternion< Scalar_ >, Options_ > & Eigen::QuaternionBase< Map< const Quaternion< Scalar_ >, Options_ > >::operator*= ( const QuaternionBase< OtherDerived > & q)
inline
See also
operator*(Quaternion)

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