iaux::iaTransform< T > Class Template Reference

#include <iaTransform.h>

Public Member Functions

bool hasShear () const
 
bool hasScale () const
 
bool hasTranslation () const
 
bool hasRotation () const
 
void getMatrix (iaMatrix< T > &matrix) const
 
 iaTransform ()
 
 iaTransform (const iaMatrix< T > &matrix)
 
 iaTransform (const iaVector3< T > &translate, const iaQuaternion< T > orientation, const iaVector3< T > &scale)
 
 iaTransform (const iaVector3< T > &translate, const iaQuaternion< T > orientation, const iaVector3< T > &scale, const iaVector3< T > &_shear)
 
 ~iaTransform ()
 

Public Attributes

iaVector3< T > _translate
 
iaQuaternion< T > _orientation
 
iaVector3< T > _scale
 
iaVector3< T > _shear
 

Detailed Description

template<class T>
class iaux::iaTransform< T >

Transform based on the components translate, rotate, scale, shear and perspective

Constructor & Destructor Documentation

◆ iaTransform() [1/4]

template<class T >
iaTransform::iaTransform ( )

initializes the matrix with the id matrix

◆ iaTransform() [2/4]

template<class T >
iaTransform::iaTransform ( const iaMatrix< T > &  matrix)

ctor set wit matrix to decompose

Parameters
matrixthe matrix to decompose

◆ iaTransform() [3/4]

template<class T >
iaTransform::iaTransform ( const iaVector3< T > &  translate,
const iaQuaternion< T >  orientation,
const iaVector3< T > &  scale 
)

initializes the matrix with given components

Parameters
translatetranslation component
orientationthe orientation component
scalethe scale component

◆ iaTransform() [4/4]

template<class T >
iaux::iaTransform< T >::iaTransform ( const iaVector3< T > &  translate,
const iaQuaternion< T >  orientation,
const iaVector3< T > &  scale,
const iaVector3< T > &  _shear 
)

initializes the matrix with given components

Parameters
translatetranslation component
orientationthe orientation component
scalethe scale component
shearthe shear component

◆ ~iaTransform()

template<class T >
IGOR_INLINE iaTransform::~iaTransform ( )

does nothing

Member Function Documentation

◆ getMatrix()

template<class T >
IGOR_INLINE void iaTransform::getMatrix ( iaMatrix< T > &  matrix) const

returns the transforms matrix based on it's components

Parameters
[out]matrixthe resulting matrix

◆ hasRotation()

template<class T >
IGOR_INLINE bool iaTransform::hasRotation ( ) const
Returns
true if transform has rotation different from 0,0,0

◆ hasScale()

template<class T >
IGOR_INLINE bool iaTransform::hasScale ( ) const
Returns
true if transform has scale different from 1,1,1

◆ hasShear()

template<class T >
IGOR_INLINE bool iaTransform::hasShear ( ) const
Returns
true if transform has shear differnt from 0,0,0

◆ hasTranslation()

template<class T >
IGOR_INLINE bool iaTransform::hasTranslation ( ) const
Returns
true if transform has translation different from 0,0,0

Member Data Documentation

◆ _orientation

template<class T >
iaQuaternion<T> iaux::iaTransform< T >::_orientation

orientation component as quaternion

◆ _scale

template<class T >
iaVector3<T> iaux::iaTransform< T >::_scale

scale component

◆ _shear

template<class T >
iaVector3<T> iaux::iaTransform< T >::_shear

shear component

◆ _translate

template<class T >
iaVector3<T> iaux::iaTransform< T >::_translate

translate component


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