Public Types | Public Member Functions | Protected Attributes

Map< const Quaternion< _Scalar >, PacketAccess > Class Template Reference

Quaternion expression mapping a constant memory buffer. More...

#include <Quaternion.h>

Inheritance diagram for Map< const Quaternion< _Scalar >, PacketAccess >:
QuaternionBase< Map< const Quaternion< _Scalar >, PacketAccess > > RotationBase< Map< const Quaternion< _Scalar >, PacketAccess >, 3 >

List of all members.

Public Types

typedef _Scalar Scalar
typedef internal::traits< Map >
::Coefficients 
Coefficients

Public Member Functions

EIGEN_STRONG_INLINE Map (const Scalar *coeffs)
const Coefficientscoeffs () const

Protected Attributes

const Coefficients m_coeffs

Detailed Description

template<typename _Scalar, int PacketAccess>
class Map< const Quaternion< _Scalar >, PacketAccess >

Quaternion expression mapping a constant memory buffer.

Parameters:
_Scalar the type of the Quaternion coefficients
PacketAccess 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

Member Typedef Documentation

template<typename _Scalar , int PacketAccess>
typedef internal::traits<Map>::Coefficients Map< const Quaternion< _Scalar >, PacketAccess >::Coefficients
template<typename _Scalar , int PacketAccess>
typedef _Scalar Map< const Quaternion< _Scalar >, PacketAccess >::Scalar

the scalar type of the coefficients

Reimplemented from QuaternionBase< Map< const Quaternion< _Scalar >, PacketAccess > >.


Constructor & Destructor Documentation

template<typename _Scalar , int PacketAccess>
EIGEN_STRONG_INLINE Map< const Quaternion< _Scalar >, PacketAccess >::Map ( const Scalar coeffs  )  [inline]

Constructs a Mapped Quaternion object from the pointer coeffs

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

 *coeffs == {x, y, z, w} 

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


Member Function Documentation

template<typename _Scalar , int PacketAccess>
const Coefficients& Map< const Quaternion< _Scalar >, PacketAccess >::coeffs (  )  const [inline]
Returns:
a read-only vector expression of the coefficients (x,y,z,w)

Reimplemented from QuaternionBase< Map< const Quaternion< _Scalar >, PacketAccess > >.


Member Data Documentation

template<typename _Scalar , int PacketAccess>
const Coefficients Map< const Quaternion< _Scalar >, PacketAccess >::m_coeffs [protected]

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