Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes | Private Types
Eigen::Map< const Quaternion< _Scalar >, _Options > Class Reference

Detailed Description

Quaternion expression mapping a constant memory buffer.

Parameters:
_Scalarthe type of the Quaternion coefficients
_Optionssee 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 >:
Inheritance graph
[legend]

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)
 Constructs a Mapped Quaternion object from the pointer coeffs.
const Coefficients & coeffs () const

Protected Attributes

const Coefficients m_coeffs

Private Types

typedef QuaternionBase< Map
< const Quaternion< _Scalar >
, _Options > > 
Base

Member Typedef Documentation

typedef QuaternionBase<Map<const Quaternion<_Scalar>, _Options> > Eigen::Map< const Quaternion< _Scalar >, _Options >::Base [private]
typedef internal::traits<Map>::Coefficients Eigen::Map< const Quaternion< _Scalar >, _Options >::Coefficients
typedef _Scalar Eigen::Map< const Quaternion< _Scalar >, _Options >::Scalar

Constructor & Destructor Documentation

EIGEN_STRONG_INLINE Eigen::Map< const Quaternion< _Scalar >, _Options >::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 _Options is set to Aligned, then the pointer coeffs must be aligned.

Definition at line 362 of file Geometry.


Member Function Documentation

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

Reimplemented from Eigen::QuaternionBase< Map< const Quaternion< _Scalar >, _Options > >.

Definition at line 364 of file Geometry.


Member Data Documentation

const Coefficients Eigen::Map< const Quaternion< _Scalar >, _Options >::m_coeffs [protected]

Definition at line 367 of file Geometry.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Sun Oct 16 12:16:33 UTC 2011