#include <FMMatrix44.h>
Public Member Functions | |
FMMatrix44 (const float *_m) | |
Creates a FMMatrix44 from the float array. | |
FMMatrix44 (const double *_m) | |
See above. | |
FMMatrix44 () | |
Creates an empty FMMatrix44. | |
operator float * () | |
Get this FMMatrix44 as an array of floats . | |
operator const float * () const | |
See above. | |
template<class Integer> | |
float * | operator[] (Integer a) |
Get a specified row of FMMatrix44 as an array of floats . | |
template<class Integer> | |
const float * | operator[] (Integer a) const |
See above. | |
FMMatrix44 & | operator= (const FMMatrix44 ©) |
Assign this FMMatrix44's elements to be the same as that of the given matrix. | |
void | Set (const float *_m) |
Sets a FMMatrix44 from the float array. | |
void | Set (const double *_m) |
See above. | |
FMMatrix44 | Transposed () const |
Gets the transposed of this FMMatrix44. | |
FMMatrix44 | Inverted () const |
Gets the inverse of this matrix. | |
float | Determinant () const |
Gets the determinant of this matrix. | |
void | Decompose (FMVector3 &scale, FMVector3 &rotation, FMVector3 &translation, float &inverted) const |
Decompose this matrix into its scale, rotation, and translation components; it also tells whether it is inverted. | |
void | Recompose (const FMVector3 &scale, const FMVector3 &rotation, const FMVector3 &translation, float inverted=1.0f) |
Recompose this matrix from its scale, rotation, and translation components. | |
FMVector3 | TransformCoordinate (const FMVector3 &coordinate) const |
Transforms the given point by this matrix. | |
FMVector4 | TransformCoordinate (const FMVector4 &coordinate) const |
See above. | |
FMVector3 | TransformVector (const FMVector3 &v) const |
Transforms the given vector by this FMMatrix44. | |
const FMVector3 & | GetTranslation () const |
Gets the translation component of this matrix. | |
FMVector3 & | GetTranslation () |
See Above. | |
void | SetTranslation (const FMVector3 &translation) |
Sets the translation component of this matrix. | |
const FMVector3 & | GetAxis (FMath::AXIS axis) const |
Gets a reference to an axis of this matrix. | |
FMVector3 & | GetAxis (FMath::AXIS axis) |
See above. | |
Static Public Member Functions | |
static FMMatrix44 | TranslationMatrix (const FMVector3 &translation) |
Gets the FMMatrix44 representation of a 3D translation. | |
static FMMatrix44 | AxisRotationMatrix (const FMVector3 &axis, float angle) |
Gets the FMMatrix44 representation of a 3D rotation about a given axis by an angle. | |
static FMMatrix44 | XAxisRotationMatrix (float angle) |
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis. | |
static FMMatrix44 | YAxisRotationMatrix (float angle) |
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis. | |
static FMMatrix44 | ZAxisRotationMatrix (float angle) |
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis. | |
static FMMatrix44 | EulerRotationMatrix (const FMVector3 &rotation) |
Gets the matrix representation of a 3D euler rotation. | |
static FMMatrix44 | ScaleMatrix (const FMVector3 &scale) |
Gets the FMMatrix44 representation of a 3D axis-bound scale. | |
static FMMatrix44 | LookAtMatrix (const FMVector3 &eye, const FMVector3 &target, const FMVector3 &up) |
Gets the FMMatrix44 represention of a look-at transformation. | |
Public Attributes | |
float | m [4][4] |
The matrix elements stored in a 2D array. | |
Static Public Attributes | |
static FMMatrix44 | Identity |
The identity matrix. |
|
Creates a FMMatrix44 from the The float array stores the elements in the following order: m[0][0], m[1][0], m[2][0], m[3][0], m[0][1], m[1][1], m[2][1], m[3][1], m[0][2], m[1][2], m[2][2], m[3][2], m[0][3], m[1][3], m[2][3], m[3][3].
|
|
Creates an empty FMMatrix44. The default values are left un-initialized. To get an identity matrix: FMMatrix44 identity(FMMatrix44::Identity); |
|
Gets the FMMatrix44 representation of a 3D rotation about a given axis by an angle.
|
|
Decompose this matrix into its scale, rotation, and translation components; it also tells whether it is inverted. To get back the original matrix, perform the following multiplication: translation * axis-rotation [z*y*x order] * scale - or use the Recompose function. If invert is negative, then to get back the original matrix, negate scale and perform the above multiplication.
|
|
Gets the determinant of this matrix.
|
|
Gets the matrix representation of a 3D euler rotation. The angles are considered in the order: x, y, z, which represents heading, banking and roll.
|
|
Gets a reference to an axis of this matrix.
|
|
Gets the translation component of this matrix.
|
|
Gets the inverse of this matrix.
|
|
Gets the FMMatrix44 represention of a look-at transformation.
|
|
Get this FMMatrix44 as an array of The array contains the elements in the following order: m[0][0], m[0][1], m[0][2], m[0][3], m[1][0], m[1][1], m[1][2], m[1][3], m[2][0], m[2][1], m[2][2], m[0][3], m[3][0], m[3][1], m[3][2], m[3][3].
|
|
Assign this FMMatrix44's elements to be the same as that of the given matrix.
|
|
Get a specified row of FMMatrix44 as an array of
|
|
Recompose this matrix from its scale, rotation, and translation components. ; it also tells whether it is inverted. To get back the original matrix, perform the following multiplication: translation * rotation [x*y*z order] * scale. If invert is negative, then to get back the original matrix, negate scale and perform the above multiplication.
|
|
Gets the FMMatrix44 representation of a 3D axis-bound scale.
|
|
Sets a FMMatrix44 from the The float array stores the elements in the following order: m[0][0], m[1][0], m[2][0], m[3][0], m[0][1], m[1][1], m[2][1], m[3][1], m[0][2], m[1][2], m[2][2], m[3][2], m[0][3], m[1][3], m[2][3], m[3][3].
|
|
Sets the translation component of this matrix.
|
|
Transforms the given point by this matrix.
|
|
Transforms the given vector by this FMMatrix44.
|
|
Gets the FMMatrix44 representation of a 3D translation. The translation in the x, y and z directions correspond to the x, y, and z components of the FMVector3.
|
|
Gets the transposed of this FMMatrix44.
|
|
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis.
|
|
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis.
|
|
Creates an FMMatrix44 rotation matrix of angle degrees around the X axis.
|