ScummVM API documentation
Tetraedge::TeMatrix4x4 Class Reference

#include <te_matrix4x4.h>

Public Member Functions

 TeMatrix4x4 (const Math::Matrix< 4, 4 > &matrix)
 
void setToIdentity ()
 
float & operator() (int row, int col)
 
const float & operator() (int row, int col) const
 
bool operator== (const TeMatrix4x4 &other) const
 
bool operator!= (const TeMatrix4x4 &other) const
 
TeVector3f32 operator* (const TeVector3f32 &mul) const
 
void scale (const TeVector3f32 &vec)
 
void translate (const TeVector3f32 &vec)
 
void rotate (const TeQuaternion &rot)
 
TeVector3f32 translation () const
 
TeVector3f32 mult3x3 (const TeVector3f32 &vec) const
 
TeVector3f32 mult4x3 (const TeVector3f32 &vec) const
 
Common::String toString () const
 
Math::Matrix< 4, 4 > toScummVMMatrix () const
 
void setValue (int row, int col, float val)
 
TeMatrix4x4 transpose () const
 
TeMatrix4x4 meshScale (float factor) const
 
void meshAdd (const TeMatrix4x4 &other)
 
bool inverse ()
 
const float * getData () const
 
float * getData ()
 
void deserialize (Common::ReadStream &stream)
 
void serialize (Common::WriteStream &stream) const
 

Static Public Member Functions

static TeMatrix4x4 fromTRS (const TeTRS &trs)
 

Detailed Description

A 4x4 matrix, but stored in column-major order to match OpenGL (and the original engine)


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