Functions | |
Matrix | MatrixMove (const Vector &t) |
Matrix | MatrixScale (const Vector &s) |
Matrix | MatrixRotX (Float w) |
Matrix | MatrixRotY (Float w) |
Matrix | MatrixRotZ (Float w) |
Vector | MatrixToHPB (const Matrix &m, ROTATIONORDER rot_order) |
Vector | VectorToHPB (const Vector &p) |
Matrix | HPBToMatrix (const Vector &hpb, ROTATIONORDER rot_order) |
void | MatrixToRotAxis (const Matrix &m, Vector *v, Float *w) |
Matrix | RotAxisToMatrix (const Vector &v, Float w) |
Matrix | RebuildMatrix (const Matrix &m) |
Creates a translation matrix.
[in] | t | The translation vector. |
Creates a scaling matrix.
[in] | s | The scaling vector for the axes. |
Creates a rotation matrix on the X axis.
[in] | w | The angle around X. |
Creates a rotation matrix on the Y axis.
[in] | w | The angle around Y. |
Creates a rotation matrix on the Z axis.
[in] | w | The angle around Z. |
Vector MatrixToHPB | ( | const Matrix & | m, |
ROTATIONORDER | rot_order | ||
) |
Calculates Euler angles from a matrix.
[in] | m | The rotation matrix. |
[in] | rot_order | The rotation order. |
Calculates Euler angles from a vector.
[in] | p | The vector to find the HPB for. |
Matrix HPBToMatrix | ( | const Vector & | hpb, |
ROTATIONORDER | rot_order | ||
) |
Constructs a matrix from Euler angles.
[in] | hpb | The input HPB. |
[in] | rot_order | The rotation order. |
Calculates rotation axis and angle from a matrix.
[in] | m | The rotation matrix. |
[out] | v | Assigned the rotation axis. |
[out] | w | Assigned the rotation angle. |
Calculates matrix from rotation axis and angle.
[in] | v | The rotation axis. |
[in] | w | The rotation angle. |