0.44.0
|
#include <iaQuaternion.h>
Public Member Functions | |
iaQuaternion () | |
iaQuaternion (const iaVector3< T > &axis, T angle) | |
iaQuaternion (T x, T y, T z, T w) | |
iaQuaternion (T x, T y, T z) | |
iaQuaternion (const iaVector3< T > &vec) | |
void | setAxisAngle (const iaVector3< T > &axis, T angle) |
void | getAxisAngle (iaVector3< T > &axis, T &angle) const |
void | set (T x, T y, T z, T w) |
void | identity () |
void | negate () |
void | setEuler (T x, T y, T z) |
void | setEuler (const iaVector3< T > &vec) |
void | getEuler (T &x, T &y, T &z) const |
void | getEuler (iaVector3< T > &vec) const |
bool | operator== (const iaQuaternion< T > &rhs) const |
bool | operator!= (const iaQuaternion< T > &rhs) const |
iaQuaternion< T > | operator+ (const iaQuaternion< T > &rhs) |
void | operator+= (const iaQuaternion< T > &rhs) |
iaQuaternion< T > | operator- (const iaQuaternion< T > &rhs) |
void | operator-= (const iaQuaternion< T > &rhs) |
iaQuaternion< T > | operator* (const iaQuaternion< T > &rhs) |
void | operator*= (const iaQuaternion< T > &rhs) |
iaQuaternion< T > | operator* (T rhs) |
void | operator*= (T rhs) |
void | normalize () |
const T * | getData () const |
T * | getData () |
Public Attributes | |
T | _x = 0.0 |
T | _y = 0.0 |
T | _z = 0.0 |
T | _w = 1.0 |
quaternion class
iaQuaternion::iaQuaternion | ( | ) |
iaQuaternion::iaQuaternion | ( | const iaVector3< T > & | axis, |
T | angle | ||
) |
ctor by axis angle
axis | the axis to rotate around |
angle | the angle to rotate |
iaQuaternion::iaQuaternion | ( | T | x, |
T | y, | ||
T | z, | ||
T | w | ||
) |
ctor by direct values
x | the x component |
y | the y component |
z | the z component |
w | the w component |
iaQuaternion::iaQuaternion | ( | T | x, |
T | y, | ||
T | z | ||
) |
ctor by euler angles
x | rotation around x axis in rad |
y | rotation around y axis in rad |
z | rotation around z axis in rad |
iaQuaternion::iaQuaternion | ( | const iaVector3< T > & | vec | ) |
ctor by euler angles
vec | vector that contains euler angles |
void iaQuaternion::getAxisAngle | ( | iaVector3< T > & | axis, |
T & | angle | ||
) | const |
returns axis angle from quaternion
axis[out] | the rotation axis \parma angle[out] the rotation angle |
IGOR_INLINE T * iaQuaternion::getData | ( | ) |
IGOR_INLINE const T * iaQuaternion::getData | ( | ) | const |
void iaQuaternion::getEuler | ( | iaVector3< T > & | vec | ) | const |
returns euler angles
vec[out] | euler angles in a vector |
void iaQuaternion::getEuler | ( | T & | x, |
T & | y, | ||
T & | z | ||
) | const |
returns euler angles
x[out] | the rotation arround the x axis |
y[out] | the rotation arround the y axis |
z[out] | the rotation arround the z axis |
void iaQuaternion::identity | ( | ) |
reset quaternion to identity
void iaQuaternion::negate | ( | ) |
negate quaternion
IGOR_INLINE void iaQuaternion::normalize | ( | ) |
normalize the quaternion to unit length
bool iaQuaternion::operator!= | ( | const iaQuaternion< T > & | rhs | ) | const |
rhs | the right hand side quaternion |
iaQuaternion< T > iaQuaternion::operator* | ( | const iaQuaternion< T > & | rhs | ) |
multiply one quaternion to this quaternion
rhs | the right hand side quaternion |
iaQuaternion< T > iaQuaternion::operator* | ( | T | rhs | ) |
multiply quaternion with scalar
rhs | right hand side the scalar value |
void iaQuaternion::operator*= | ( | const iaQuaternion< T > & | rhs | ) |
multiply one quaternion with an other one
rhs | the right hand side quaternion |
void iaQuaternion::operator*= | ( | T | rhs | ) |
multiplies quaternion with scalar
rhs | right hand side scalar value |
iaQuaternion< T > iaQuaternion::operator+ | ( | const iaQuaternion< T > & | rhs | ) |
add one quaternion to an other
rhs | the right hand side quaternion |
void iaQuaternion::operator+= | ( | const iaQuaternion< T > & | rhs | ) |
add one quaternion to this quaternion
rhs | the right hand side quaternion |
iaQuaternion< T > iaQuaternion::operator- | ( | const iaQuaternion< T > & | rhs | ) |
subtracts one quaternion from an other
rhs | the right hand side quaternion |
void iaQuaternion::operator-= | ( | const iaQuaternion< T > & | rhs | ) |
subtracts one quaternion from the other
rhs | the right hand side quaternion |
bool iaQuaternion::operator== | ( | const iaQuaternion< T > & | rhs | ) | const |
rhs | the right hand side quaternion |
void iaQuaternion::set | ( | T | x, |
T | y, | ||
T | z, | ||
T | w | ||
) |
set by direct value
x | the x component |
y | the y component |
z | the z component |
w | the w component |
void iaQuaternion::setAxisAngle | ( | const iaVector3< T > & | axis, |
T | angle | ||
) |
set by axis angle
axis | the axis to rotate arround |
angle | the angle to rotate |
void iaQuaternion::setEuler | ( | const iaVector3< T > & | vec | ) |
set by euler angles
vec | vector that contains euler angles |
void iaQuaternion::setEuler | ( | T | x, |
T | y, | ||
T | z | ||
) |
set by euler angles
x | rotation arround x axis in rad |
y | rotation arround y axis in rad |
z | rotation arround z axis in rad |
T iaux::iaQuaternion< T >::_w = 1.0 |
w component
T iaux::iaQuaternion< T >::_x = 0.0 |
x component
T iaux::iaQuaternion< T >::_y = 0.0 |
y component
T iaux::iaQuaternion< T >::_z = 0.0 |
z component