ScummVM API documentation
Titanic::FPose Class Reference
Inheritance diagram for Titanic::FPose:
Titanic::FMatrix

Public Member Functions

 FPose (Axis axis, float amount)
 
 FPose (int mode, const FVector &src)
 
 FPose (const FPose &s1, const FPose &s2)
 
void identity ()
 
void setRotationMatrix (Axis axis, float val)
 
void rotVectAxisY (double angleDeg)
 
void copyFrom (const FPose &src)
 
void copyFrom (const FMatrix &src)
 
void loadTransform (const CMatrixTransform &src)
 
FPose inverseTransform () const
 
FPose compose (const FMatrix &m)
 
FPose compose2 (const FPose &m)
 
- Public Member Functions inherited from Titanic::FMatrix
 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 _vector
 
- Public Attributes inherited from Titanic::FMatrix
FVector _row1
 
FVector _row2
 
FVector _row3
 

Constructor & Destructor Documentation

◆ FPose()

Titanic::FPose::FPose ( const FPose s1,
const FPose s2 
)

This fpose is the fpose product of s1 (on the left) and s2 (on the right)

Member Function Documentation

◆ identity()

void Titanic::FPose::identity ( )

Sets an identity matrix

◆ setRotationMatrix()

void Titanic::FPose::setRotationMatrix ( Axis  axis,
float  val 
)

Sets a rotation matrix for the given axis for the given amount

◆ rotVectAxisY()

void Titanic::FPose::rotVectAxisY ( double  angleDeg)

Rotate this FPose about the Y axis

◆ copyFrom() [1/2]

void Titanic::FPose::copyFrom ( const FPose src)

Copy from the specified source pose

◆ copyFrom() [2/2]

void Titanic::FPose::copyFrom ( const FMatrix src)

Copy from the specified source matrix

◆ loadTransform()

void Titanic::FPose::loadTransform ( const CMatrixTransform src)

Change this Daffine to have its first three columns be some mapping from src matrix and the 4rth column to be (three) zeros. The mapping is not as simple as replacing matching row/colmn indices

◆ inverseTransform()

FPose Titanic::FPose::inverseTransform ( ) const

The inverse of rotation and the position vector

◆ compose()

FPose Titanic::FPose::compose ( const FMatrix m)

Multiplication between this FPose (4x3) and a FMatrix (3x3) This is done by making the matrix be a FPose with a last row of zeros

◆ compose2()

FPose Titanic::FPose::compose2 ( const FPose m)

Multiplication between this FPose (4x3) and another FPose This FPose is on the left and m is on the right. The last row of m is added to the output component wise


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