#include <matrix2.h>
Public Member Functions |
|
Matrix2 () | |
Matrix2 (BOOL init) | |
Matrix2 (float(*fp)[2]) | |
Matrix2 & | operator-= (const Matrix2 &M) |
Matrix2 & | operator+= (const Matrix2 &M) |
Matrix2 & | operator*= (const Matrix2 &M) |
operator float * () | |
void | IdentityMatrix () |
void | Zero () |
Point2 | GetRow (int i) const |
void | SetRow (int i, Point2 p) |
Point3 | GetColumn (int i) |
void | SetColumn (int i, Point3 col) |
Point2 | GetColumn2 (int i) |
void | SetTrans (const Point2 p) |
void | SetTrans (int i, float v) |
Point2 | GetTrans () |
void | Translate (const Point2 &p) |
void | Rotate (float angle) |
void | Scale (const Point2 &s, BOOL trans=FALSE) |
void | PreTranslate (const Point2 &p) |
void | PreRotate (float angle) |
void | PreScale (const Point2 &s, BOOL trans=FALSE) |
void | SetTranslate (const Point2 &s) |
void | SetRotate (float angle) |
void | Invert () |
Matrix2 | operator* (const Matrix2 &B) const |
Matrix2 | operator+ (const Matrix2 &B) const |
Matrix2 | operator- (const Matrix2 &B) const |
IOResult | Save (ISave *isave) |
IOResult | Load (ILoad *iload) |
Public Attributes |
|
float | m [3][2] |
Static Public Attributes |
|
static const Matrix2 | Identity |
Matrix2 | ( | ) | [inline] |
{} // NO INITIALIZATION done in this constructor!! (can use Zero or IdentityMatrix)
Matrix2 | ( | BOOL | init | ) | [inline] |
{ UNUSED_PARAM(init); IdentityMatrix(); } // An option to initialize
Matrix2 | ( | float(*) | fp[2] | ) |
void IdentityMatrix | ( | ) |
void Zero | ( | ) |
Point2 GetRow | ( | int | i | ) | const [inline] |
{ return (*this)[i]; }
void SetRow | ( | int | i, |
Point2 | p | ||
) | [inline] |
{ (*this)[i] = p; }
Point3 GetColumn | ( | int | i | ) |
void SetColumn | ( | int | i, |
Point3 | col | ||
) |
Point2 GetColumn2 | ( | int | i | ) |
void SetTrans | ( | const Point2 | p | ) | [inline] |
{ (*this)[2] = p; }
void SetTrans | ( | int | i, |
float | v | ||
) | [inline] |
{ (*this)[2][i] = v; }
Point2 GetTrans | ( | ) | [inline] |
{ return (*this)[2]; }
void Translate | ( | const Point2 & | p | ) |
void Rotate | ( | float | angle | ) |
void Scale | ( | const Point2 & | s, |
BOOL | trans =
FALSE |
||
) |
void PreTranslate | ( | const Point2 & | p | ) |
void PreRotate | ( | float | angle | ) |
void PreScale | ( | const Point2 & | s, |
BOOL | trans =
FALSE |
||
) |
void SetTranslate | ( | const Point2 & | s | ) |
void SetRotate | ( | float | angle | ) |
void Invert | ( | ) |
float m[3][2] |