Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Types | Friends

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

Expression of a quaternion from a memory buffer. More...

#include <Quaternion.h>

Inheritance diagram for Map< Quaternion< _Scalar >, PacketAccess >:
Inheritance graph
[legend]
Collaboration diagram for Map< Quaternion< _Scalar >, PacketAccess >:
Collaboration graph
[legend]

List of all members.

Public Types

enum  
enum  
typedef AngleAxis< ScalarAngleAxisType
typedef internal::traits< Map >
::Coefficients 
Coefficients
typedef Matrix< Scalar, 3, 3 > Matrix3
typedef NumTraits< Scalar >::Real RealScalar
typedef Matrix< Scalar, Dim, Dim > RotationMatrixType
typedef Matrix< Scalar, Dim, Dim > RotationMatrixType
typedef _Scalar Scalar
typedef Matrix< Scalar, 3, 1 > Vector3
typedef Matrix< Scalar, Dim, 1 > VectorType

Public Member Functions

EIGEN_STRONG_INLINE Vector3 _transformVector (Vector3 v) const
VectorType _transformVector (const OtherVectorType &v) const
Scalar angularDistance (const QuaternionBase< OtherDerived > &other) const
internal::cast_return_type
< Map< Quaternion< _Scalar >
, PacketAccess >, Quaternion
< NewScalarType > >::type 
cast () const
Coefficients & coeffs ()
const Coefficients & coeffs () const
Quaternion< Scalarconjugate () const
const Map< Quaternion< _Scalar >
, PacketAccess > & 
derived () const
Map< Quaternion< _Scalar >
, PacketAccess > & 
derived ()
const Map< Quaternion< _Scalar >
, PacketAccess > & 
derived () const
Map< Quaternion< _Scalar >
, PacketAccess > & 
derived ()
Scalar dot (const QuaternionBase< OtherDerived > &other) const
Quaternion< Scalarinverse () const
bool isApprox (const QuaternionBase< OtherDerived > &other, RealScalar prec=NumTraits< Scalar >::dummy_precision()) const
EIGEN_STRONG_INLINE Map (Scalar *coeffs)
RotationMatrixType matrix () const
Scalar norm () const
void normalize ()
Quaternion< Scalarnormalized () const
RotationMatrixType operator* (const UniformScaling< Scalar > &s) const
EIGEN_STRONG_INLINE Quaternion
< Scalar
operator* (const QuaternionBase< OtherDerived > &q) const
Transform< Scalar, Dim > operator* (const Translation< Scalar, Dim > &t) const
RotationMatrixType operator* (const Scaling< Scalar, Dim > &s) const
Transform< Scalar, Dim > operator* (const Transform< Scalar, Dim > &t) const
Transform< Scalar, Dim, Mode > operator* (const Transform< Scalar, Dim, Mode, Options > &t) const
EIGEN_STRONG_INLINE
internal::rotation_base_generic_product_selector
< Map< Quaternion< _Scalar >
, PacketAccess >, OtherDerived,
OtherDerived::IsVectorAtCompileTime >
::ReturnType 
operator* (const EigenBase< OtherDerived > &e) const
EIGEN_STRONG_INLINE Map
< Quaternion< _Scalar >
, PacketAccess > & 
operator*= (const QuaternionBase< OtherDerived > &q)
Map< Quaternion< _Scalar >
, PacketAccess > & 
setFromTwoVectors (const MatrixBase< Derived1 > &a, const MatrixBase< Derived2 > &b)
QuaternionBasesetIdentity ()
Quaternion< Scalarslerp (Scalar t, const QuaternionBase< OtherDerived > &other) const
Scalar squaredNorm () const
Matrix3 toRotationMatrix () const
const VectorBlock< const
Coefficients, 3 > 
vec () const
VectorBlock< Coefficients, 3 > vec ()
Scalarw ()
Scalar w () const
Scalar x () const
Scalarx ()
Scalary ()
Scalar y () const
Scalar z () const
Scalarz ()

Static Public Member Functions

static Quaternion< ScalarIdentity ()

Protected Attributes

Coefficients m_coeffs

Private Types

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

Friends

RotationMatrixType operator* (const EigenBase< OtherDerived > &l, const Map< Quaternion< _Scalar >, PacketAccess > &r)
Transform< Scalar, Dim, Affine > operator* (const DiagonalMatrix< Scalar, Dim > &l, const Map< Quaternion< _Scalar >, PacketAccess > &r)

Detailed Description

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

Expression of a quaternion from a 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

Definition at line 356 of file Quaternion.h.


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

Generated by  Doxygen 1.6.0   Back to index