Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
coma::Mat3 Class Reference

represents mathematical matrix with 3 cols and 3 rows More...

#include <matrix_3.h>

Public Member Functions

Mat3 Multiply (const Mat3 &other) const
 
float Determinant () const
 
Mat3 Adjoint () const
 
bool GetInverse (Mat3 &out) const
 
bool Inverse ()
 
Mat3 Transpose () const
 
Vec3 GetColum (int colum) const
 
Vec3 GetLine (int line) const
 

Static Public Member Functions

static Mat3 Identity ()
 
static Mat3 Translate (const Vec2 &position)
 
static Mat3 Translate (float x, float y)
 

Detailed Description

represents mathematical matrix with 3 cols and 3 rows

Member Function Documentation

◆ Adjoint()

Mat3 coma::Mat3::Adjoint ( ) const
inline
Returns

◆ Determinant()

float coma::Mat3::Determinant ( ) const
inline
Returns

◆ GetColum()

Vec3 coma::Mat3::GetColum ( int  colum) const
inline
Parameters
colum
Returns

◆ GetInverse()

bool coma::Mat3::GetInverse ( Mat3 out) const
inline
Parameters
out
Returns

◆ GetLine()

Vec3 coma::Mat3::GetLine ( int  line) const
inline
Parameters
line
Returns

◆ Identity()

Mat3 coma::Mat3::Identity ( )
inlinestatic
Returns

◆ Inverse()

bool coma::Mat3::Inverse ( )
inline
Returns

◆ Multiply()

Mat3 coma::Mat3::Multiply ( const Mat3 other) const
inline
Parameters
other
Returns

◆ Translate() [1/2]

Mat3 coma::Mat3::Translate ( const Vec2 position)
inlinestatic
Parameters
position
Returns

◆ Translate() [2/2]

Mat3 coma::Mat3::Translate ( float  x,
float  y 
)
inlinestatic
Parameters
x
y
Returns

◆ Transpose()

Mat3 coma::Mat3::Transpose ( ) const
inline
Returns