cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
vctQuaternionRotation3< _elementType > Class Template Reference

Define a rotation quaternion for a space of dimension 3. More...

#include <vctQuaternionRotation3.h>

Inheritance diagram for vctQuaternionRotation3< _elementType >:
vctQuaternionRotation3Base< vctFixedSizeVector< _elementType, 4 > > vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > > vctFixedSizeVector< _elementType, 4 > vctFixedSizeVectorBase< _size, 1, _elementType, vctFixedSizeVectorTraits< _elementType, _size, 1 >::array > vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >

Public Types

enum  { SIZE = 4 }
 
enum  { DIMENSION = 3 }
 
typedef vctFixedSizeVector
< value_type, SIZE
ContainerType
 
typedef
vctQuaternionRotation3Base
< ContainerType
BaseType
 
typedef vctQuaternionRotation3
< value_type > 
ThisType
 
typedef cmnTypeTraits< value_type > TypeTraits
 
- Public Types inherited from vctQuaternionRotation3Base< vctFixedSizeVector< _elementType, 4 > >
enum  
 
enum  
 
typedef vctQuaternionBase
< vctFixedSizeVector
< _elementType, 4 > > 
BaseType
 
typedef vctFixedSizeVector
< _elementType, 4 > 
ContainerType
 
typedef
vctQuaternionRotation3Base
< vctFixedSizeVector
< _elementType, 4 > > 
ThisType
 
typedef cmnTypeTraits< value_type > TypeTraits
 
- Public Types inherited from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >
enum  
 
typedef vctFixedSizeVector
< _elementType, 4 > 
BaseType
 
typedef vctFixedSizeVector
< _elementType, 4 > 
ContainerType
 
typedef vctQuaternionBase
< vctFixedSizeVector
< _elementType, 4 > > 
ThisType
 
typedef cmnTypeTraits< value_type > TypeTraits
 
- Public Types inherited from vctFixedSizeVector< _elementType, 4 >
enum  
 
typedef
vctFixedSizeVectorTraits
< _elementType, _size, 1 > 
VectorTraits
 
typedef vctFixedSizeVector
< value_type, _size > 
ThisType
 
typedef vctFixedSizeVectorBase
< _size, 1, _elementType,
typename VectorTraits::array > 
BaseType
 
typedef BaseType::CopyType CopyType
 
typedef class cmnTypeTraits
< value_type > 
TypeTraits
 
typedef TypeTraits::VaArgPromotion ElementVaArgPromotion
 
- Public Types inherited from vctFixedSizeVectorBase< _size, 1, _elementType, vctFixedSizeVectorTraits< _elementType, _size, 1 >::array >
enum  
 
enum  
 
enum  
 
typedef
vctFixedSizeVectorTraits
< _elementType, _size, _stride > 
VectorTraits
 
typedef vctFixedSizeVectorBase
< _size, _stride, _elementType,
vctFixedSizeVectorTraits
< _elementType, _size, 1 >
::array > 
ThisType
 
typedef
vctFixedSizeConstVectorBase
< _size, _stride, _elementType,
vctFixedSizeVectorTraits
< _elementType, _size, 1 >
::array > 
BaseType
 
typedef BaseType::CopyType CopyType
 
typedef cmnTypeTraits< value_type > TypeTraits
 
typedef VectorTraits::iterator iterator
 
typedef
VectorTraits::const_iterator 
const_iterator
 
typedef
VectorTraits::reverse_iterator 
reverse_iterator
 
typedef
VectorTraits::const_reverse_iterator 
const_reverse_iterator
 
typedef
BaseType::RowConstMatrixRefType 
RowConstMatrixRefType
 
typedef BaseType::RowMatrixRefType RowMatrixRefType
 
typedef
BaseType::ColConstMatrixRefType 
ColConstMatrixRefType
 
typedef BaseType::ColMatrixRefType ColMatrixRefType
 
- Public Types inherited from vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >
enum  { SIZE = VectorTraits::SIZE }
 
enum  { STRIDE = VectorTraits::STRIDE }
 
typedef
vctFixedSizeConstVectorBase
< _size, _stride, _elementType,
_dataPtrType > 
ThisType
 
typedef
vctFixedSizeVectorTraits
< _elementType, _size, _stride > 
VectorTraits
 
typedef VectorTraits::iterator iterator
 
typedef
VectorTraits::const_iterator 
const_iterator
 
typedef
VectorTraits::reverse_iterator 
reverse_iterator
 
typedef
VectorTraits::const_reverse_iterator 
const_reverse_iterator
 
typedef vctFixedSizeVector
< _elementType, _size > 
VectorValueType
 
typedef vctFixedSizeVector
< _elementType, _size > 
CopyType
 
typedef vctFixedSizeVector
< bool, _size > 
BoolVectorValueType
 
typedef
vctFixedSizeConstMatrixRef
< _elementType, 1, _size,
_stride *_size, _stride > 
RowConstMatrixRefType
 
typedef vctFixedSizeMatrixRef
< _elementType, 1, _size,
_stride *_size, _stride > 
RowMatrixRefType
 
typedef
vctFixedSizeConstMatrixRef
< _elementType, _size,
1, _stride, _stride *_size > 
ColConstMatrixRefType
 
typedef vctFixedSizeMatrixRef
< _elementType, _size,
1, _stride, _stride *_size > 
ColMatrixRefType
 

Public Member Functions

 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 
 vctQuaternionRotation3 ()
 
 vctQuaternionRotation3 (const ThisType &quaternionRotation)
 
template<class __containerType >
 vctQuaternionRotation3 (const vctQuaternionRotation3Base< __containerType > &other) throw (std::runtime_error)
 
 vctQuaternionRotation3 (const value_type &x, const value_type &y, const value_type &z, const value_type &r) throw (std::runtime_error)
 
template<class __containerType >
 vctQuaternionRotation3 (const vctMatrixRotation3Base< __containerType > &matrixRotation) throw (std::runtime_error)
 
 vctQuaternionRotation3 (const vctAxisAngleRotation3< value_type > &axisAngleRotation) throw (std::runtime_error)
 
template<class __containerType >
 vctQuaternionRotation3 (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation) throw (std::runtime_error)
 
 vctQuaternionRotation3 (const ThisType &quaternionRotation, bool normalizeInput)
 
template<class _containerType >
 vctQuaternionRotation3 (const _containerType &vector4, bool normalizeInput)
 
 vctQuaternionRotation3 (const value_type &x, const value_type &y, const value_type &z, const value_type &r, bool normalizeInput)
 
template<class __containerType >
 vctQuaternionRotation3 (const vctMatrixRotation3Base< __containerType > &matrixRotation, bool normalizeInput)
 
 vctQuaternionRotation3 (const vctAxisAngleRotation3< value_type > &axisAngleRotation, bool normalizeInput)
 
template<class __containerType >
 vctQuaternionRotation3 (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation, bool normalizeInput)
 
template<class __containerType >
ThisTypeoperator= (const vctQuaternionRotation3Base< __containerType > &other)
 
- Public Member Functions inherited from vctQuaternionRotation3Base< vctFixedSizeVector< _elementType, 4 > >
 VCT_CONTAINER_TRAITS_TYPEDEFS (typename ContainerType::value_type)
 
 vctQuaternionRotation3Base (void)
 
 vctQuaternionRotation3Base (const ThisType &quaternionRotation)
 
ThisTypeFrom (const ThisType &otherRotation)
 
ThisTypeNormalizedOf (const ThisType &otherQuaternion)
 
ThisTypeNormalizedSelf (void)
 
ThisType Normalized (void) const
 
ThisTypeInverseSelf (void)
 
ThisTypeInverseOf (const ThisType &otherRotation)
 
ThisType Inverse (void) const
 
void ApplyTo (const vctFixedSizeConstVectorBase< DIMENSION, __stride1, value_type, __dataPtrType1 > &input, vctFixedSizeVectorBase< DIMENSION, __stride2, value_type, __dataPtrType2 > &output) const
 
void ApplyTo (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &input, vctFixedSizeVectorBase< DIMENSION, __stride, value_type, __dataPtrType > &output) const
 
vctFixedSizeVector< value_type,
DIMENSION
ApplyTo (const vctFixedSizeConstVectorBase< DIMENSION, __stride, value_type, __dataPtrType > &input) const
 
vctFixedSizeVector< value_type,
DIMENSION
ApplyTo (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &input) const
 
void ApplyTo (const vctFixedSizeConstMatrixBase< DIMENSION, __cols, __rowStride1, __colStride1, value_type, __dataPtrType1 > &input, vctFixedSizeMatrixBase< DIMENSION, __cols, __rowStride2, __colStride2, value_type, __dataPtrType2 > &output) const
 
void ApplyTo (const vctDynamicConstMatrixBase< __matrixOwnerType1, value_type > &input, vctDynamicMatrixBase< __matrixOwnerType2, value_type > &output) const
 
void ApplyTo (const ThisType &input, ThisType &output) const
 
ThisType ApplyTo (const ThisType &input) const
 
void ApplyTo (const vctDynamicConstVectorBase< _vectorOwnerType1, value_type > &input, vctDynamicVectorBase< _vectorOwnerType2, value_type > &output) const
 
void ApplyInverseTo (const vctFixedSizeConstVectorBase< DIMENSION, __stride1, value_type, __dataPtrType1 > &input, vctFixedSizeVectorBase< DIMENSION, __stride2, value_type, __dataPtrType2 > &output) const
 
void ApplyInverseTo (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &input, vctFixedSizeVectorBase< DIMENSION, __stride, value_type, __dataPtrType > &output) const
 
vctFixedSizeVector< value_type,
DIMENSION
ApplyInverseTo (const vctFixedSizeConstVectorBase< DIMENSION, __stride, value_type, __dataPtrType > &input) const
 
vctFixedSizeVector< value_type,
DIMENSION
ApplyInverseTo (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &input) const
 
void ApplyInverseTo (const vctFixedSizeConstMatrixBase< DIMENSION, __cols, __rowStride1, __colStride1, value_type, __dataPtrType1 > &input, vctFixedSizeMatrixBase< DIMENSION, __cols, __rowStride2, __colStride2, value_type, __dataPtrType2 > &output) const
 
void ApplyInverseTo (const ThisType &input, ThisType &output) const
 
ThisType ApplyInverseTo (const ThisType &input) const
 
void ApplyInverseTo (const vctDynamicConstVectorBase< _vectorOwnerType1, value_type > &input, vctDynamicVectorBase< _vectorOwnerType2, value_type > &output) const
 
void ApplyInverseTo (const vctDynamicConstMatrixBase< __matrixOwnerType1, value_type > &input, vctDynamicMatrixBase< __matrixOwnerType2, value_type > &output) const
 
bool AlmostEquivalent (const ThisType &other, value_type tolerance=TypeTraits::Tolerance()) const
 
ThisType operator* (const ThisType &input) const
 
 vctQuaternionRotation3Base (const value_type &x, const value_type &y, const value_type &z, const value_type &r) throw (std::runtime_error)
 
 vctQuaternionRotation3Base (const vctMatrixRotation3Base< __containerType > &matrixRotation) throw (std::runtime_error)
 
 vctQuaternionRotation3Base (const vctAxisAngleRotation3< value_type > &axisAngleRotation) throw (std::runtime_error)
 
 vctQuaternionRotation3Base (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation) throw (std::runtime_error)
 
 vctQuaternionRotation3Base (const ThisType &quaternionRotation, bool normalizeInput)
 
 vctQuaternionRotation3Base (const value_type &x, const value_type &y, const value_type &z, const value_type &r, bool normalizeInput)
 
 vctQuaternionRotation3Base (const vctMatrixRotation3Base< __containerType > &matrixRotation, bool normalizeInput)
 
 vctQuaternionRotation3Base (const vctAxisAngleRotation3< value_type > &axisAngleRotation, bool normalizeInput)
 
 vctQuaternionRotation3Base (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation, bool normalizeInput)
 
ThisTypeFrom (value_type x, value_type y, value_type z, value_type r) throw (std::runtime_error)
 
ThisTypeFrom (const vctAxisAngleRotation3< value_type > axisAngleRotation) throw (std::runtime_error)
 
ThisTypeFrom (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation) throw (std::runtime_error)
 
ThisTypeFrom (const vctMatrixRotation3Base< __containerType > &matrixRotation) throw (std::runtime_error)
 
CISST_DEPRECATED const ThisTypeFrom (const vctFixedSizeConstVectorBase< 3, __stride, value_type, __dataPtrType > &axis, const AngleType &angle)
 
CISST_DEPRECATED const ThisTypeFrom (const vctFixedSizeConstVectorBase< 3, __stride, value_type, __dataPtrType > &rodriguezRotation)
 
CISST_DEPRECATED void GetAxisAngle (vctFixedSizeVectorBase< 3, __stride, value_type, __dataPtrType > &axis, value_type &angle)
 
ThisTypeFromNormalized (const vctQuaternionRotation3Base< __containerType > &other)
 
ThisTypeFromNormalized (value_type x, value_type y, value_type z, value_type r)
 
ThisTypeFromNormalized (const vctAxisAngleRotation3< value_type > axisAngleRotation)
 
ThisTypeFromNormalized (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation)
 
ThisTypeFromNormalized (const vctMatrixRotation3Base< __containerType > &matrixRotation)
 
ThisTypeFromRaw (const vctQuaternionRotation3Base< __containerType > &other)
 
ThisTypeFromRaw (value_type x, value_type y, value_type z, value_type r)
 
ThisTypeFromRaw (const vctAxisAngleRotation3< value_type > axisAngleRotation)
 
ThisTypeFromRaw (const vctRodriguezRotation3Base< __containerType > &rodriguezRotation)
 
ThisTypeFromRaw (const vctMatrixRotation3Base< __containerType > &matrixRotation)
 
- Public Member Functions inherited from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >
 VCT_CONTAINER_TRAITS_TYPEDEFS (typename ContainerType::value_type)
 
 vctQuaternionBase (void)
 
 vctQuaternionBase (const value_type &x, const value_type &y, const value_type &z, const value_type &r)
 
const_reference R (void) const
 
reference R (void)
 
ThisTypeConjugateOf (const vctQuaternionBase< __containerTypeOther > &otherQuaternion)
 
ThisTypeConjugateSelf (void)
 
ThisType Conjugate (void) const
 
ThisTypeProductOf (const vctQuaternionBase< __containerType1 > &quat1, const vctQuaternionBase< __containerType2 > &quat2)
 
ThisTypeQuotientOf (const vctQuaternionBase< __containerType1 > &quat1, const vctQuaternionBase< __containerType2 > &quat2)
 
ThisTypePostMultiply (const vctQuaternionBase< __containerTypeOther > &other)
 
ThisTypePreMultiply (const vctQuaternionBase< __containerTypeOther > &other)
 
ThisTypeDivide (const vctQuaternionBase< __containerTypeOther > &other)
 
ThisTypeDivide (const value_type s)
 
- Public Member Functions inherited from vctFixedSizeVector< _elementType, 4 >
 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 
 vctFixedSizeVector ()
 
 vctFixedSizeVector (const value_type &value)
 
 vctFixedSizeVector (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &vector)
 
 vctFixedSizeVector (const vctFixedSizeConstVectorBase< SIZEMINUSONE, __stride, _elementType, __dataPtrType > &vector, value_type lastElement)
 
 vctFixedSizeVector (const __elementType *elements)
 
 vctFixedSizeVector (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &vector)
 
ThisTypeoperator= (const value_type &value)
 
bool FromStreamRaw (std::istream &inputStream, const char delimiter= ' ')
 
void DeSerializeRaw (std::istream &inputStream)
 
 vctFixedSizeVector (const vctFixedSizeConstVectorRef< _elementType, _size, __stride > &vector)
 
 vctFixedSizeVector (const vctFixedSizeVectorRef< _elementType, _size, __stride > &vector)
 
 vctFixedSizeVector (const value_type &element0, const value_type &element1)
 
 vctFixedSizeVector (const value_type &element0, const value_type &element1, const value_type &element2)
 
 vctFixedSizeVector (const value_type &element0, const value_type &element1, const value_type &element2, const value_type &element3)
 
 vctFixedSizeVector (const value_type element0, const value_type element1, const value_type element2, const value_type element3, const value_type element4,...)
 
ThisTypeoperator= (const ThisType &other)
 
ThisTypeoperator= (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
 
ThisTypeoperator= (const vctFixedSizeConstVectorRef< value_type, _size, __stride > &other)
 
ThisTypeoperator= (const vctFixedSizeConstVectorRef< __elementType, _size, __stride > &other)
 
- Public Member Functions inherited from vctFixedSizeVectorBase< _size, 1, _elementType, vctFixedSizeVectorTraits< _elementType, _size, 1 >::array >
 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 
iterator begin (void)
 
const_iterator begin (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
reverse_iterator rbegin (void)
 
const_reverse_iterator rbegin (void) const
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
reference operator[] (size_type index)
 
const_reference operator[] (size_type index) const
 
reference at (size_type index) throw (std::out_of_range)
 
const_reference at (size_type index) const throw (std::out_of_range)
 
reference operator() (size_type index) throw (std::out_of_range)
 
const_reference operator() (size_type index) const throw (std::out_of_range)
 
reference Element (size_type index)
 
const_reference Element (size_type index) const
 
pointer Pointer (size_type index=0)
 
const_pointer Pointer (size_type index=0) const
 
value_type SetAll (const value_type &value)
 
bool Zeros (void)
 
ThisTypeAssign (const value_type element0, const value_type element1, const value_type element2, const value_type element3, const value_type element4,...)
 
ThisTypeAssign (const value_type *elements)
 
ThisTypeAssign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other)
 
ThisTypeConcatenationOf (const vctFixedSizeConstVectorBase< SIZEMINUSONE, __stride, __elementTypeVector, __dataPtrType > &other, __elementType last)
 
void SelectFrom (const vctFixedSizeConstVectorBase< __inputSize, __inputStride, _elementType, __inputDataPtrType > &input, const vctFixedSizeConstVectorBase< _size, __indexStride, index_type, __indexDataPtrType > &index)
 
void CrossProductOf (const vctFixedSizeConstVectorBase< 3, __stride1, _elementType, __dataPtr1Type > &inputVector1, const vctFixedSizeConstVectorBase< 3, __stride2, _elementType, __dataPtr2Type > &inputVector2)
 
ThisTypeAddProductOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeAddElementwiseProductOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeAssign (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
 
ThisTypeoperator= (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
 
ThisTypeAssign (const value_type element0) throw (std::runtime_error)
 
ThisTypeAssign (const value_type element0, const value_type element1) throw (std::runtime_error)
 
ThisTypeAssign (const value_type element0, const value_type element1, const value_type element2) throw (std::runtime_error)
 
ThisTypeAssign (const value_type element0, const value_type element1, const value_type element2, const value_type element3) throw (std::runtime_error)
 
ThisTypeForceAssign (const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
 
ThisTypeForceAssign (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &other)
 
bool FastCopyOf (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source, bool performSafetyChecks=true) throw (std::runtime_error)
 
bool FastCopyOf (const vctFixedSizeConstVectorBase< SIZE, STRIDE, value_type, __dataPtrType > &source, bool performSafetyChecks=true) throw (std::runtime_error)
 
value_type & X (void)
 
const value_type & X (void) const
 
value_type & Y (void)
 
const value_type & Y (void) const
 
value_type & Z (void)
 
const value_type & Z (void) const
 
value_type & W (void)
 
const value_type & W (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, _stride > 
XY (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
XY (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, 2 *_stride > 
XZ (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, 2 *_stride > 
XZ (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, 3 *_stride > 
XW (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, 3 *_stride > 
XW (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, _stride > 
YZ (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
YZ (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, 2 *_stride > 
YW (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, 2 *_stride > 
YW (void) const
 
vctFixedSizeVectorRef
< _elementType, 2, _stride > 
ZW (void)
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
ZW (void) const
 
vctFixedSizeVectorRef
< _elementType, 3, _stride > 
XYZ (void)
 
vctFixedSizeConstVectorRef
< _elementType, 3, _stride > 
XYZ (void) const
 
vctFixedSizeVectorRef
< _elementType, 3, _stride > 
YZW (void)
 
vctFixedSizeConstVectorRef
< _elementType, 3, _stride > 
YZW (void) const
 
vctFixedSizeVectorRef
< _elementType, 4, _stride > 
XYZW (void)
 
vctFixedSizeConstVectorRef
< _elementType, 4, _stride > 
XYZW (void) const
 
RowConstMatrixRefType AsRowMatrix (void) const
 
RowMatrixRefType AsRowMatrix (void)
 
ColConstMatrixRefType AsColMatrix (void) const
 
ColMatrixRefType AsColMatrix (void)
 
vctFixedSizeConstVectorRef
< _elementType, __subSize,
_stride > 
Ref (const size_type startPosition=0) const throw (std::out_of_range)
 
vctFixedSizeVectorRef
< _elementType, __subSize,
_stride > 
Ref (const size_type startPosition=0) throw (std::out_of_range)
 
ThisTypeSumOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeDifferenceOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeElementwiseProductOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeElementwiseRatioOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeElementwiseMinOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeElementwiseMaxOf (const vctFixedSizeConstVectorBase< _size, __stride1, value_type, __dataPtrType1 > &vector1, const vctFixedSizeConstVectorBase< _size, __stride2, value_type, __dataPtrType2 > &vector2)
 
ThisTypeAdd (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeSubtract (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeElementwiseMultiply (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeElementwiseDivide (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeElementwiseMin (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeElementwiseMax (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeoperator+= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeoperator-= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeSwapElementsWith (vctFixedSizeVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeSumOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar)
 
ThisTypeDifferenceOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar)
 
ThisTypeProductOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar)
 
ThisTypeRatioOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type scalar)
 
ThisTypeClippedAboveOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type upperBound)
 
ThisTypeClippedBelowOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector, const value_type lowerBound)
 
ThisTypeSumOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeDifferenceOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeProductOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeRatioOf (const value_type scalar, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeClippedAboveOf (const value_type upperBound, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeClippedBelowOf (const value_type lowerBound, const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &vector)
 
ThisTypeAdd (const value_type scalar)
 
ThisTypeSubtract (const value_type scalar)
 
ThisTypeoperator+= (const value_type scalar)
 
ThisTypeoperator-= (const value_type scalar)
 
ThisTypeMultiply (const value_type scalar)
 
ThisTypeDivide (const value_type scalar)
 
ThisTypeClipAbove (const value_type upperBound)
 
ThisTypeClipBelow (const value_type lowerBound)
 
ThisTypeoperator*= (const value_type scalar)
 
ThisTypeoperator/= (const value_type scalar)
 
ThisTypeProductOf (const vctFixedSizeConstMatrixBase< _size, __matrixCols, __matrixRowStride, __matrixColStride, _elementType, __matrixDataPtrType > &inputMatrix, const vctFixedSizeConstVectorBase< __matrixCols, __vectorStride, _elementType, __vectorDataPtrType > &inputVector)
 
ThisTypeProductOf (const vctFixedSizeConstVectorBase< __vectorSize, __vectorStride, _elementType, __vectorDataPtrType > &inputVector, const vctFixedSizeConstMatrixBase< __vectorSize, _size, __matrixRowStride, __matrixColStride, _elementType, __matrixDataPtrType > &inputMatrix)
 
ThisTypeAbsOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeNegationOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeFloorOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeCeilOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector)
 
ThisTypeNormalizedOf (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) throw (std::runtime_error)
 
ThisTypeAbsSelf (void)
 
ThisTypeNegationSelf (void)
 
ThisTypeFloorSelf (void)
 
ThisTypeCeilSelf (void)
 
ThisTypeNormalizedSelf (void) throw (std::runtime_error)
 
- Public Member Functions inherited from vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >
 VCT_CONTAINER_TRAITS_TYPEDEFS (_elementType)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
const_reverse_iterator rbegin (void) const
 
const_reverse_iterator rend (void) const
 
size_type size (void) const
 
size_type max_size (void) const
 
difference_type stride (void) const
 
bool empty (void) const
 
const_reference operator[] (size_type index) const
 
const_reference at (size_type index) const throw (std::out_of_range)
 
const_reference operator() (size_type index) const throw (std::out_of_range)
 
const_reference Element (size_type index) const
 
const_pointer Pointer (size_type index=0) const
 
bool ValidIndex (size_type index) const
 
template<vct::size_type __subSize>
vctFixedSizeConstVectorRef
< _elementType, __subSize,
_stride > 
Ref (const size_type startPosition=0) const throw (std::out_of_range)
 
template<stride_type __stride, class __dataPtrType >
value_type DotProduct (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
std::string ToString (void) const
 
void ToStream (std::ostream &outputStream) const
 
void ToStreamRaw (std::ostream &outputStream, const char delimiter= ' ', bool headerOnly=false, const std::string &headerPrefix="") const
 
void SerializeRaw (std::ostream &outputStream) const
 
const value_type & X (void) const
 
const value_type & Y (void) const
 
const value_type & Z (void) const
 
const value_type & W (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
XY (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, 2 *_stride > 
XZ (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, 3 *_stride > 
XW (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
YZ (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, 2 *_stride > 
YW (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 2, _stride > 
ZW (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 3, _stride > 
XYZ (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 3, _stride > 
YZW (void) const
 
vctFixedSizeConstVectorRef
< _elementType, 4, _stride > 
XYZW (void) const
 
RowConstMatrixRefType AsRowMatrix (void) const
 
ColConstMatrixRefType AsColMatrix (void) const
 
value_type SumOfElements (void) const
 
value_type ProductOfElements (void) const
 
value_type NormSquare (void) const
 
NormType Norm (void) const
 
bool IsNormalized (_elementType tolerance=cmnTypeTraits< _elementType >::Tolerance()) const
 
value_type L1Norm (void) const
 
value_type LinfNorm (void) const
 
value_type MaxElement (void) const
 
value_type MinElement (void) const
 
value_type MaxAbsElement (void) const
 
value_type MinAbsElement (void) const
 
void MinAndMaxElement (value_type &minElement, value_type &maxElement) const
 
bool IsPositive (void) const
 
bool IsNonNegative (void) const
 
bool IsNonPositive (void) const
 
bool IsNegative (void) const
 
bool All (void) const
 
bool Any (void) const
 
bool IsFinite (void) const
 
bool HasNaN (void) const
 
bool IsCompact (void) const
 
bool IsFortran (void) const
 
template<size_type __size, stride_type __stride, class __dataPtrType >
bool FastCopyCompatible (const vctFixedSizeConstVectorBase< __size, __stride, value_type, __dataPtrType > &source) const
 
template<class __vectorOwnerType >
bool FastCopyCompatible (const vctDynamicConstVectorBase< __vectorOwnerType, value_type > &source) const
 
template<stride_type __stride, class __dataPtrType >
bool Equal (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool operator== (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool AlmostEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector, value_type tolerance) const
 
template<stride_type __stride, class __dataPtrType >
bool AlmostEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool NotEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool operator!= (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool Lesser (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool LesserOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool Greater (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
bool GreaterOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseNotEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseLesser (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseLesserOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseGreater (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
template<stride_type __stride, class __dataPtrType >
BoolVectorValueType ElementwiseGreaterOrEqual (const vctFixedSizeConstVectorBase< _size, __stride, value_type, __dataPtrType > &otherVector) const
 
bool Equal (const value_type &scalar) const
 
bool operator== (const value_type &scalar) const
 
bool NotEqual (const value_type &scalar) const
 
bool operator!= (const value_type &scalar) const
 
bool Lesser (const value_type &scalar) const
 
bool LesserOrEqual (const value_type &scalar) const
 
bool Greater (const value_type &scalar) const
 
bool GreaterOrEqual (const value_type &scalar) const
 
BoolVectorValueType ElementwiseEqual (const value_type &scalar) const
 
BoolVectorValueType ElementwiseNotEqual (const value_type &scalar) const
 
BoolVectorValueType ElementwiseLesser (const value_type &scalar) const
 
BoolVectorValueType ElementwiseLesserOrEqual (const value_type &scalar) const
 
BoolVectorValueType ElementwiseGreater (const value_type &scalar) const
 
BoolVectorValueType ElementwiseGreaterOrEqual (const value_type &scalar) const
 
VectorValueType Abs (void) const
 
VectorValueType Negation (void) const
 
VectorValueType Floor (void) const
 
VectorValueType Ceil (void) const
 
VectorValueType Normalized (void) const throw (std::runtime_error)
 

Additional Inherited Members

- Static Public Member Functions inherited from vctQuaternionRotation3Base< vctFixedSizeVector< _elementType, 4 > >
static CISST_EXPORT const
ThisType
Identity ()
 
- Protected Member Functions inherited from vctQuaternionRotation3Base< vctFixedSizeVector< _elementType, 4 > >
void ThrowUnlessIsNormalized (void) const throw (std::runtime_error)
 
void ThrowUnlessIsNormalized (const _inputType &input) const throw (std::runtime_error)
 
void Allocate (void)
 
- Protected Member Functions inherited from vctQuaternionBase< vctFixedSizeVector< _elementType, 4 > >
void Allocate (void)
 
- Protected Member Functions inherited from vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >
void ThrowUnlessValidIndex (size_type index) const throw (std::out_of_range)
 
- Protected Attributes inherited from vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >
_dataPtrType Data
 

Detailed Description

template<class _elementType>
class vctQuaternionRotation3< _elementType >

Define a rotation quaternion for a space of dimension 3.

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

Parameters
_elementTypeThe type of elements of the quaternion.
See Also
vctQuaternionRotation3Base vctFixedSizeVector

Member Typedef Documentation

template<class _elementType>
typedef vctQuaternionRotation3Base<ContainerType> vctQuaternionRotation3< _elementType >::BaseType
template<class _elementType>
typedef vctFixedSizeVector<value_type, SIZE> vctQuaternionRotation3< _elementType >::ContainerType
template<class _elementType>
typedef vctQuaternionRotation3<value_type> vctQuaternionRotation3< _elementType >::ThisType
template<class _elementType>
typedef cmnTypeTraits<value_type> vctQuaternionRotation3< _elementType >::TypeTraits

Traits used for all useful types and values related to the element type.

Member Enumeration Documentation

template<class _elementType>
anonymous enum
Enumerator
SIZE 
template<class _elementType>
anonymous enum
Enumerator
DIMENSION 

Constructor & Destructor Documentation

template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( )
inline
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const ThisType quaternionRotation)
inline
template<class _elementType>
template<class __containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctQuaternionRotation3Base< __containerType > &  other)
throw (std::runtime_error
)
inline
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const value_type &  x,
const value_type &  y,
const value_type &  z,
const value_type &  r 
)
throw (std::runtime_error
)
inline
template<class _elementType>
template<class __containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctMatrixRotation3Base< __containerType > &  matrixRotation)
throw (std::runtime_error
)
inlineexplicit
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctAxisAngleRotation3< value_type > &  axisAngleRotation)
throw (std::runtime_error
)
inlineexplicit
template<class _elementType>
template<class __containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctRodriguezRotation3Base< __containerType > &  rodriguezRotation)
throw (std::runtime_error
)
inlineexplicit
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const ThisType quaternionRotation,
bool  normalizeInput 
)
inline
template<class _elementType>
template<class _containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const _containerType &  vector4,
bool  normalizeInput 
)
inline
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const value_type &  x,
const value_type &  y,
const value_type &  z,
const value_type &  r,
bool  normalizeInput 
)
inline
template<class _elementType>
template<class __containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctMatrixRotation3Base< __containerType > &  matrixRotation,
bool  normalizeInput 
)
inlineexplicit
template<class _elementType>
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctAxisAngleRotation3< value_type > &  axisAngleRotation,
bool  normalizeInput 
)
inline
template<class _elementType>
template<class __containerType >
vctQuaternionRotation3< _elementType >::vctQuaternionRotation3 ( const vctRodriguezRotation3Base< __containerType > &  rodriguezRotation,
bool  normalizeInput 
)
inline

Member Function Documentation

template<class _elementType>
template<class __containerType >
ThisType& vctQuaternionRotation3< _elementType >::operator= ( const vctQuaternionRotation3Base< __containerType > &  other)
inline

The assignment from BaseType has to be redefined for this class (C++ restriction). This operator uses the Assign() method inherited from the ContainerType. This operator (as well as the Assign method) allows to set a rotation quaternion to whatever value without any further validity checking. It is recommended to use it with caution.

template<class _elementType>
vctQuaternionRotation3< _elementType >::VCT_CONTAINER_TRAITS_TYPEDEFS ( _elementType  )

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