Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Represents a quaternion in a 4D vector. More...
#include <quaternion.h>
Public Member Functions | |
aiQuaterniont () AI_NO_EXCEPT | |
aiQuaterniont (aiVector3t< TReal > axis, TReal angle) | |
Construct from an axis-angle pair. More... | |
aiQuaterniont (aiVector3t< TReal > normalized) | |
Construct from a normalized quaternion stored in a vec3. More... | |
aiQuaterniont (const aiMatrix3x3t< TReal > &pRotMatrix) | |
Construct from rotation matrix. More... | |
aiQuaterniont (TReal pw, TReal px, TReal py, TReal pz) | |
aiQuaterniont (TReal roty, TReal rotz, TReal rotx) | |
Construct from euler angles. More... | |
aiQuaterniont & | Conjugate () |
Compute quaternion conjugate. More... | |
bool | Equal (const aiQuaterniont &o, TReal epsilon=ai_epsilon) const |
aiMatrix3x3t< TReal > | GetMatrix () const |
Returns a matrix representation of the quaternion. More... | |
aiQuaterniont & | Normalize () |
Normalize the quaternion. More... | |
bool | operator!= (const aiQuaterniont &o) const |
aiQuaterniont | operator* (const aiQuaterniont &two) const |
Multiply two quaternions. More... | |
aiQuaterniont & | operator*= (const aiMatrix4x4t< TReal > &mat) |
bool | operator== (const aiQuaterniont &o) const |
aiVector3t< TReal > | Rotate (const aiVector3t< TReal > &in) const |
Rotate a point by this quaternion. More... | |
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. More... | |
Public Attributes | |
TReal | w |
w,x,y,z components of the quaternion More... | |
TReal | x |
TReal | y |
TReal | z |
Represents a quaternion in a 4D vector.
|
inline |
|
inline |
|
inlineexplicit |
Construct from rotation matrix.
Result is undefined if the matrix is not orthonormal.
|
inline |
Construct from euler angles.
|
inline |
Construct from an axis-angle pair.
|
inlineexplicit |
Construct from a normalized quaternion stored in a vec3.
|
inline |
Compute quaternion conjugate.
|
inline |
|
inline |
Returns a matrix representation of the quaternion.
|
inlinestatic |
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. |
|
inline |
Normalize the quaternion.
bool aiQuaterniont< TReal >::operator!= | ( | const aiQuaterniont< TReal > & | o | ) | const |
|
inline |
Multiply two quaternions.
AI_FORCE_INLINE aiQuaterniont< TReal > & aiQuaterniont< TReal >::operator*= | ( | const aiMatrix4x4t< TReal > & | mat | ) |
bool aiQuaterniont< TReal >::operator== | ( | const aiQuaterniont< TReal > & | o | ) | const |
|
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 |