0.45.0
![]() |
#include <iaTransform.h>
Public Member Functions | |
bool | operator== (const iaTransform< T > &other) const |
bool | operator!= (const iaTransform< T > &other) const |
iaTransform< T > | operator* (const iaTransform< T > &other) |
iaTransform< T > | inverse () const |
iaVector3< T > | applyTo (const iaVector3< T > &vec) const |
void | operator*= (const iaTransform< T > &other) |
bool | hasTranslation () const |
bool | hasRotation () const |
bool | hasScale () const |
void | set (const iaVector3< T > &position, const iaQuaternion< T > orientation, const iaVector3< T > &scale) |
const iaMatrix< T > | getMatrix () const |
void | identity () |
iaTransform () | |
iaTransform (const iaVector3< T > &position, const iaQuaternion< T > orientation=iaVector3< T >(0.0, 0.0, 0.0), const iaVector3< T > &scale=iaVector3< T >(1.0, 1.0, 1.0)) | |
~iaTransform ()=default | |
Public Attributes | |
iaVector3< T > | _position |
iaQuaternion< T > | _orientation |
iaVector3< T > | _scale |
Transform based on the components position, orientation, scale
iaTransform::iaTransform | ( | ) |
initializes the transform effectively with the id matrix
iaTransform::iaTransform | ( | const iaVector3< T > & | position, |
const iaQuaternion< T > | orientation = iaVector3<T>(0.0, 0.0, 0.0) , |
||
const iaVector3< T > & | scale = iaVector3<T>(1.0, 1.0, 1.0) |
||
) |
initializes the transform with given components
position | translation component |
orientation | the orientation component |
scale | the scale component |
|
default |
does nothing
multiply transform with vector
vec | the given vector |
IGOR_INLINE const iaMatrix< T > iaTransform::getMatrix | ( | ) | const |
IGOR_INLINE bool iaTransform::hasRotation | ( | ) | const |
IGOR_INLINE bool iaTransform::hasScale | ( | ) | const |
IGOR_INLINE bool iaTransform::hasTranslation | ( | ) | const |
void iaTransform::identity | ( | ) |
the equivalent of setting an identity matrix
iaTransform< T > iaTransform::inverse | ( | ) | const |
inverse transform
IGOR_INLINE bool iaTransform::operator!= | ( | const iaTransform< T > & | other | ) | const |
negated comparison of two transforms
other | the other transform to compare with |
IGOR_INLINE iaTransform< T > iaTransform::operator* | ( | const iaTransform< T > & | other | ) |
transform multiplication
equivalent of a matrix multiplication
other | the other transform to multiply with |
IGOR_INLINE void iaTransform::operator*= | ( | const iaTransform< T > & | other | ) |
transform multiplication stored in this transform
equivalent of a matrix multiplication
other | the other transform to multiply with |
IGOR_INLINE bool iaTransform::operator== | ( | const iaTransform< T > & | other | ) | const |
comparison of two transforms
other | the other transform to compare with |
void iaTransform::set | ( | const iaVector3< T > & | position, |
const iaQuaternion< T > | orientation, | ||
const iaVector3< T > & | scale | ||
) |
set the transform with given components
position | translation component |
orientation | the orientation component |
scale | the scale component |
iaQuaternion<T> iaux::iaTransform< T >::_orientation |
orientation component with euler angles
iaVector3<T> iaux::iaTransform< T >::_position |
position component
iaVector3<T> iaux::iaTransform< T >::_scale |
scale component