|
Assimp
v2.0 (November 2010)
|
Represents a quaternion in a 4D vector. More...
Public Member Functions | |
| aiQuaternion () | |
| aiQuaternion (float _w, float _x, float _y, float _z) | |
| aiQuaternion (const aiMatrix3x3 &pRotMatrix) | |
| Construct from rotation matrix. | |
| aiQuaternion (float rotx, float roty, float rotz) | |
| Construct from euler angles. | |
| aiQuaternion (aiVector3D axis, float angle) | |
| Construct from an axis-angle pair. | |
| aiQuaternion (aiVector3D normalized) | |
| Construct from a normalized quaternion stored in a vec3. | |
| aiQuaternion & | Conjugate () |
| Compute quaternion conjugate. | |
| aiMatrix3x3 | GetMatrix () const |
| Returns a matrix representation of the quaternion. | |
| aiQuaternion & | Normalize () |
| Normalize the quaternion. | |
| bool | operator!= (const aiQuaternion &o) const |
| aiQuaternion | operator* (const aiQuaternion &two) const |
| Multiply two quaternions. | |
| bool | operator== (const aiQuaternion &o) const |
| aiVector3D | Rotate (const aiVector3D &in) |
| Rotate a point by this quaternion. | |
Static Public Member Functions | |
| static void | Interpolate (aiQuaternion &pOut, const aiQuaternion &pStart, const aiQuaternion &pEnd, float pFactor) |
| Performs a spherical interpolation between two quaternions and writes the result into the third. | |
Public Attributes | |
| float | w |
| w,x,y,z components of the quaternion | |
| float | x |
| float | y |
| float | z |
Represents a quaternion in a 4D vector.
|
inline |
|
inline |
|
inline |
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.
|
inline |
Construct from a normalized quaternion stored in a vec3.
|
inline |
Compute quaternion conjugate.
|
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.
|
inline |
|
inline |
Multiply two quaternions.
|
inline |
|
inline |
Rotate a point by this quaternion.
| float aiQuaternion::w |
w,x,y,z components of the quaternion
| float aiQuaternion::x |
| float aiQuaternion::y |
| float aiQuaternion::z |
1.8.1.1