Public Types | Public Member Functions
Map< const Quaternion< _Scalar >, PacketAccess > Class Template Reference

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

Inherits QuaternionBase< Derived >.

List of all members.

Public Types

typedef _Scalar Scalar

Public Member Functions

 Map (const Scalar *coeffs)

Detailed Description

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

Quaternion expression mapping a constant memory buffer.

Parameters:
_Scalarthe type of the Quaternion coefficients
PacketAccesssee 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

typedef _Scalar Scalar

the scalar type of the coefficients

Reimplemented from RotationBase< Derived, 3 >.


Constructor & Destructor Documentation

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.


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