aiQuaterniont< TReal > Class Template Reference
Represents a quaternion in a 4D vector.
More...
List of all members.
Public Member Functions |
| | aiQuaterniont (aiVector3t< TReal > normalized) |
| | Construct from a normalized quaternion stored in a vec3.
|
| | aiQuaterniont (aiVector3t< TReal > axis, TReal angle) |
| | Construct from an axis-angle pair.
|
| | aiQuaterniont (TReal rotx, TReal roty, TReal rotz) |
| | Construct from euler angles.
|
| | aiQuaterniont (const aiMatrix3x3t< TReal > &pRotMatrix) |
| | Construct from rotation matrix.
|
| | aiQuaterniont (TReal pw, TReal px, TReal py, TReal pz) |
| | aiQuaterniont () |
| 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 |
Detailed Description
template<typename TReal>
class aiQuaterniont< TReal >
Represents a quaternion in a 4D vector.
Constructor & Destructor Documentation
Construct from rotation matrix.
Result is undefined if the matrix is not orthonormal.
Construct from euler angles.
Construct from an axis-angle pair.
Construct from a normalized quaternion stored in a vec3.
Member Function Documentation
template<typename TReal >
Compute quaternion conjugate.
template<typename TReal >
Returns a matrix representation of the quaternion.
Performs a spherical interpolation between two quaternions and writes the result into the third.
- Parameters:
-
| 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. |
template<typename TReal >
Normalize the quaternion.
template<typename TReal >
template<typename TReal >
Multiply two quaternions.
template<typename TReal >
Rotate a point by this quaternion.
Member Data Documentation
w,x,y,z components of the quaternion
The documentation for this class was generated from the following files: