ScummVM API documentation
Titanic::FMatrix Class Reference

#include <fmatrix.h>

Inheritance diagram for Titanic::FMatrix:
Titanic::FPose

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)
 
FVectoroperator[] (int idx)
 

Public Attributes

FVector _row1
 
FVector _row2
 
FVector _row3
 

Detailed Description

Floating point matrix class.

Member Function Documentation

◆ load()

void Titanic::FMatrix::load ( SimpleFile file,
int  param 
)

Load the data for the class from file

◆ save()

void Titanic::FMatrix::save ( SimpleFile file,
int  indent 
)

Save the data for the class to file

◆ clear()

void Titanic::FMatrix::clear ( )

Clears the matrix

◆ identity()

void Titanic::FMatrix::identity ( )

Sets up an identity matrix

◆ set() [1/3]

void Titanic::FMatrix::set ( const FMatrix m)

Sets the data for the matrix

◆ set() [2/3]

void Titanic::FMatrix::set ( const FVector row1,
const FVector row2,
const FVector row3 
)

Sets the data for the matrix

◆ set() [3/3]

void Titanic::FMatrix::set ( const FVector v)

Sets the data for the matrix from a vector

◆ matRProd()

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).

◆ matLProd()

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).

◆ operator==()

bool Titanic::FMatrix::operator== ( const FMatrix src)
inline

Returns true if the passed matrix equals this one

◆ operator!=()

bool Titanic::FMatrix::operator!= ( const FMatrix src)
inline

Returns true if the passed matrix does not equal this one

◆ operator[]()

FVector& Titanic::FMatrix::operator[] ( int  idx)
inline

Allows accessing rows as an array


The documentation for this class was generated from the following file: