aiQuaternion Struct Reference
Represents a quaternion in a 4D vector.
More...
List of all members.
Public Member Functions |
| aiQuaternion (aiVector3D normalized) |
| Construct from a normalized quaternion stored in a vec3.
|
| aiQuaternion (aiVector3D axis, float angle) |
| Construct from an axis-angle pair.
|
| aiQuaternion (float rotx, float roty, float rotz) |
| Construct from euler angles.
|
| aiQuaternion (const aiMatrix3x3 &pRotMatrix) |
| Construct from rotation matrix.
|
| aiQuaternion (float _w, float _x, float _y, float _z) |
| aiQuaternion () |
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 |
Detailed Description
Represents a quaternion in a 4D vector.
Constructor & Destructor Documentation
aiQuaternion::aiQuaternion |
( |
|
) |
[inline] |
aiQuaternion::aiQuaternion |
( |
float |
_w, |
|
|
float |
_x, |
|
|
float |
_y, |
|
|
float |
_z | |
|
) |
| | [inline] |
aiQuaternion::aiQuaternion |
( |
const aiMatrix3x3 & |
pRotMatrix |
) |
[inline] |
Construct from rotation matrix.
Result is undefined if the matrix is not orthonormal.
aiQuaternion::aiQuaternion |
( |
float |
rotx, |
|
|
float |
roty, |
|
|
float |
rotz | |
|
) |
| | [inline] |
Construct from euler angles.
aiQuaternion::aiQuaternion |
( |
aiVector3D |
axis, |
|
|
float |
angle | |
|
) |
| | [inline] |
Construct from an axis-angle pair.
aiQuaternion::aiQuaternion |
( |
aiVector3D |
normalized |
) |
[inline] |
Construct from a normalized quaternion stored in a vec3.
Member Function Documentation
Compute quaternion conjugate.
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. |
Normalize the quaternion.
bool aiQuaternion::operator!= |
( |
const aiQuaternion & |
o |
) |
const [inline] |
Multiply two quaternions.
bool aiQuaternion::operator== |
( |
const aiQuaternion & |
o |
) |
const [inline] |
Rotate a point by this quaternion.
Member Data Documentation
w,x,y,z components of the quaternion
The documentation for this struct was generated from the following file: