ERC CISST - cisst software

vctQuaternion< _elementType > Class Template Reference
[Vectors]

#include <vctQuaternion.h>

Inheritance diagram for vctQuaternion< _elementType >:

Inheritance graph
[legend]
Collaboration diagram for vctQuaternion< _elementType >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class _elementType>
class vctQuaternion< _elementType >

Define a quaternion container.

This class is templated by the element type. It is derived from vctQuaternionBase and uses a vctFixedSizeVector as underlying container. It provides a more humain interface for programmers only interested in templating by _elementType.

It is important to note that the class vctQuaternion is for any quaternion, i.e. it does not necessary represent a unit quaternion.

Parameters:
_elementType The type of elements of the vector.
See also:
vctQuaternionBase vctFixedSizeVector

Definition at line 54 of file vctQuaternion.h.

Public Types

Public Member Functions

Public Attributes


Member Typedef Documentation

template<class _elementType>
typedef vctQuaternion<value_type> vctQuaternion< _elementType >::ThisType

Type of the vector itself.

Reimplemented from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >.

Definition at line 60 of file vctQuaternion.h.

template<class _elementType>
typedef vctQuaternionBase<ContainerType> vctQuaternion< _elementType >::BaseType

Type of the base class.

Reimplemented from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >.

Definition at line 62 of file vctQuaternion.h.

template<class _elementType>
typedef cmnTypeTraits<value_type> vctQuaternion< _elementType >::TypeTraits

Type traits for the elements of the vector.

Reimplemented from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >.

Definition at line 63 of file vctQuaternion.h.


Constructor & Destructor Documentation

template<class _elementType>
vctQuaternion< _elementType >::vctQuaternion (  )  [inline]

Default constructor. Does nothing.

Definition at line 66 of file vctQuaternion.h.

template<class _elementType>
vctQuaternion< _elementType >::vctQuaternion ( const value_type &  x,
const value_type &  y,
const value_type &  z,
const value_type &  r 
) [inline]

Constructor from 4 elements.

Parameters:
x The first imaginary component
y The second imaginary component
z The third imaginary component
r The real component

Definition at line 77 of file vctQuaternion.h.


The documentation for this class was generated from the following file:
erc-cisst-devel<at>lists.johnshopkins.edu