#include <fmatrix.h>
Public Member Functions | |
FMatrix (const FVector &, const FVector &, const FVector &) | |
void | load (SimpleFile *file, int param) |
void | save (SimpleFile *file, int indent) |
void | clear () |
void | identity () |
void | set (const FMatrix &m) |
void | set (const FVector &row1, const FVector &row2, const FVector &row3) |
void | set (const FVector &v) |
void | matRProd (const FMatrix &m) |
void | matLProd (const FMatrix &m) |
bool | operator== (const FMatrix &src) |
bool | operator!= (const FMatrix &src) |
FVector & | operator[] (int idx) |
Public Attributes | |
FVector | _row1 |
FVector | _row2 |
FVector | _row3 |
Floating point matrix class.
void Titanic::FMatrix::load | ( | SimpleFile * | file, |
int | param | ||
) |
Load the data for the class from file
void Titanic::FMatrix::save | ( | SimpleFile * | file, |
int | indent | ||
) |
Save the data for the class to file
void Titanic::FMatrix::clear | ( | ) |
Clears the matrix
void Titanic::FMatrix::identity | ( | ) |
Sets up an identity matrix
void Titanic::FMatrix::set | ( | const FMatrix & | m | ) |
Sets the data for the matrix
Sets the data for the matrix
void Titanic::FMatrix::set | ( | const FVector & | v | ) |
Sets the data for the matrix from a vector
void Titanic::FMatrix::matRProd | ( | const FMatrix & | m | ) |
Changes this matrix, A, to be C, where C=Am. Matrix m multiplies this matrix (A) on its Right. m is said to premultiply A (the previous this matrix).
void Titanic::FMatrix::matLProd | ( | const FMatrix & | m | ) |
Changes this matrix, A, to be C, where C=mA. Matrix m multiplies this matrix (A) on its Left. m is said to postmultiply A (the previous this matrix).
|
inline |
Returns true if the passed matrix equals this one
|
inline |
Returns true if the passed matrix does not equal this one
|
inline |
Allows accessing rows as an array