#include <mat2.h>
Public Member Functions | |
CMat2 () | |
CMat2 (float rot) | |
bool | invert () |
void | loadIdentity () |
void | makeRotation (float fA) |
CMat2 | operator* (const CMat2 &mat) const |
CVec2 | operator* (const CVec2 &v) const |
Point2D | operator* (const Point2D &p) const |
CMat2 | operator+ (const CMat2 rhs) const |
CMat2 | operator- (const CMat2 rhs) const |
float & | operator[] (unsigned int position) |
void | transpose () |
float | valueAt (unsigned int position) const |
~CMat2 () | |
Public Attributes | |
union { | |
struct { | |
float xx | |
float xy | |
float yx | |
float yy | |
} | |
float fMatrix [4] | |
float m [2][2] | |
}; |
CMat2::CMat2 | ( | ) | [inline] |
Definition at line 12 of file mat2_inl.h.
CMat2::CMat2 | ( | float | rot | ) | [inline] |
Definition at line 21 of file mat2_inl.h.
CMat2::~CMat2 | ( | ) | [inline] |
Definition at line 18 of file mat2_inl.h.
bool CMat2::invert | ( | ) | [inline] |
Definition at line 67 of file mat2_inl.h.
void CMat2::loadIdentity | ( | ) | [inline] |
Definition at line 54 of file mat2_inl.h.
void CMat2::makeRotation | ( | float | fA | ) | [inline] |
Definition at line 60 of file mat2_inl.h.
Definition at line 26 of file mat2_inl.h.
Definition at line 37 of file mat2_inl.h.
Point2D CMat2::operator* | ( | const Point2D & | p | ) | const [inline] |
Definition at line 42 of file mat2_inl.h.
void CMat2::transpose | ( | ) | [inline] |
Definition at line 47 of file mat2_inl.h.
float CMat2::valueAt | ( | unsigned int | position | ) | const [inline] |
union { ... } |
float CMat2::fMatrix[4] |