Assimp
v3.1.1 (June 2014)
|
Represents a quaternion in a 4D vector. More...
Public Member Functions | |
aiQuaterniont () | |
aiQuaterniont (TReal pw, TReal px, TReal py, TReal pz) | |
aiQuaterniont (const aiMatrix3x3t< TReal > &pRotMatrix) | |
Construct from rotation matrix. | |
aiQuaterniont (TReal rotx, TReal roty, TReal rotz) | |
Construct from euler angles. | |
aiQuaterniont (aiVector3t< TReal > axis, TReal angle) | |
Construct from an axis-angle pair. | |
aiQuaterniont (aiVector3t< TReal > normalized) | |
Construct from a normalized quaternion stored in a vec3. | |
aiQuaterniont & | Conjugate () |
Compute quaternion conjugate. | |
bool | Equal (const aiQuaterniont &o, TReal epsilon=1e-6) const |
aiMatrix3x3t< TReal > | GetMatrix () const |
Returns a matrix representation of the quaternion. | |
aiQuaterniont & | Normalize () |
Normalize the quaternion. | |
bool | operator!= (const aiQuaterniont &o) const |
aiQuaterniont | operator* (const aiQuaterniont &two) const |
Multiply two quaternions. | |
bool | operator== (const aiQuaterniont &o) const |
aiVector3t< TReal > | Rotate (const aiVector3t< TReal > &in) |
Rotate a point by this quaternion. | |
Static Public Member Functions | |
static void | Interpolate (aiQuaterniont &pOut, const aiQuaterniont &pStart, const aiQuaterniont &pEnd, TReal pFactor) |
Performs a spherical interpolation between two quaternions and writes the result into the third. | |
Public Attributes | |
TReal | w |
w,x,y,z components of the quaternion | |
TReal | x |
TReal | y |
TReal | z |
Represents a quaternion in a 4D vector.
aiQuaterniont< TReal >::aiQuaterniont | ( | ) | [inline] |
aiQuaterniont< TReal >::aiQuaterniont | ( | TReal | pw, |
TReal | px, | ||
TReal | py, | ||
TReal | pz | ||
) | [inline] |
aiQuaterniont< TReal >::aiQuaterniont | ( | const aiMatrix3x3t< TReal > & | pRotMatrix | ) | [inline, explicit] |
Construct from rotation matrix.
Result is undefined if the matrix is not orthonormal.
aiQuaterniont< TReal >::aiQuaterniont | ( | TReal | rotx, |
TReal | roty, | ||
TReal | rotz | ||
) | [inline] |
Construct from euler angles.
aiQuaterniont< TReal >::aiQuaterniont | ( | aiVector3t< TReal > | axis, |
TReal | angle | ||
) | [inline] |
Construct from an axis-angle pair.
aiQuaterniont< TReal >::aiQuaterniont | ( | aiVector3t< TReal > | normalized | ) | [inline, explicit] |
Construct from a normalized quaternion stored in a vec3.
aiQuaterniont< TReal > & aiQuaterniont< TReal >::Conjugate | ( | ) | [inline] |
Compute quaternion conjugate.
bool aiQuaterniont< TReal >::Equal | ( | const aiQuaterniont< TReal > & | o, |
TReal | epsilon = 1e-6 |
||
) | const [inline] |
aiMatrix3x3t< TReal > aiQuaterniont< TReal >::GetMatrix | ( | ) | const [inline] |
Returns a matrix representation of the quaternion.
void aiQuaterniont< TReal >::Interpolate | ( | aiQuaterniont< TReal > & | pOut, |
const aiQuaterniont< TReal > & | pStart, | ||
const aiQuaterniont< TReal > & | pEnd, | ||
TReal | pFactor | ||
) | [inline, static] |
Performs a spherical interpolation between two quaternions and writes the result into the third.
pOut | Target object to received the interpolated rotation. |
pStart | Start rotation of the interpolation at factor == 0. |
pEnd | End rotation, factor == 1. |
pFactor | Interpolation factor between 0 and 1. Values outside of this range yield undefined results. |
aiQuaterniont< TReal > & aiQuaterniont< TReal >::Normalize | ( | ) | [inline] |
Normalize the quaternion.
bool aiQuaterniont< TReal >::operator!= | ( | const aiQuaterniont< TReal > & | o | ) | const |
aiQuaterniont< TReal > aiQuaterniont< TReal >::operator* | ( | const aiQuaterniont< TReal > & | two | ) | const [inline] |
Multiply two quaternions.
bool aiQuaterniont< TReal >::operator== | ( | const aiQuaterniont< TReal > & | o | ) | const |
aiVector3t< TReal > aiQuaterniont< TReal >::Rotate | ( | const aiVector3t< TReal > & | in | ) | [inline] |
Rotate a point by this quaternion.
TReal aiQuaterniont< TReal >::w |
w,x,y,z components of the quaternion
TReal aiQuaterniont< TReal >::x |
TReal aiQuaterniont< TReal >::y |
TReal aiQuaterniont< TReal >::z |