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

Detailed Description

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

Protected Attributes

Coefficients m_coeffs

Private Types

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

Member Typedef Documentation

typedef QuaternionBase<Map<Quaternion<_Scalar>, _Options> > Eigen::Map< Quaternion< _Scalar >, _Options >::Base [private]

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

Definition at line 384 of file Geometry.

typedef internal::traits<Map>::Coefficients Eigen::Map< Quaternion< _Scalar >, _Options >::Coefficients

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

Definition at line 388 of file Geometry.

typedef _Scalar Eigen::Map< Quaternion< _Scalar >, _Options >::Scalar

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

Definition at line 387 of file Geometry.


Constructor & Destructor Documentation

EIGEN_STRONG_INLINE Eigen::Map< Quaternion< _Scalar >, _Options >::Map ( 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 398 of file Geometry.


Member Function Documentation

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

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

Definition at line 400 of file Geometry.

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

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

Definition at line 401 of file Geometry.


Member Data Documentation

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

Definition at line 404 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