Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
This class represents a quaternion as a 4D vector. More...
#include <quaternion.h>
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 |
This class represents a quaternion as 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 |
Will compute the quaternion conjugate.
The result will be stored in the instance.
|
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 |
Will normalize the quaternion representation.
bool aiQuaterniont< TReal >::operator!= | ( | const aiQuaterniont< TReal > & | o | ) | const |
|
inline |
Multiply two quaternions.
two | The other quaternion. |
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 |