#include <matrix2.h>

Public Member Functions |
|
| Matrix2 () | |
| Matrix2 (BOOL init) | |
| GEOMEXPORT | Matrix2 (float(*fp)[2]) |
| GEOMEXPORT Matrix2 & | operator-= (const Matrix2 &M) |
| GEOMEXPORT Matrix2 & | operator+= (const Matrix2 &M) |
| GEOMEXPORT Matrix2 & | operator*= (const Matrix2 &M) |
| operator float * () | |
| GEOMEXPORT void | IdentityMatrix () |
| GEOMEXPORT void | Zero () |
| Point2 | GetRow (int i) const |
| GEOMEXPORT void | SetRow (int i, Point2 p) |
| GEOMEXPORT Point3 | GetColumn (int i) |
| GEOMEXPORT void | SetColumn (int i, Point3 col) |
| GEOMEXPORT Point2 | GetColumn2 (int i) |
| void | SetTrans (const Point2 p) |
| void | SetTrans (int i, float v) |
| Point2 | GetTrans () |
| GEOMEXPORT void | Translate (const Point2 &p) |
| GEOMEXPORT void | Rotate (float angle) |
| GEOMEXPORT void | Scale (const Point2 &s, BOOL trans=FALSE) |
| GEOMEXPORT void | PreTranslate (const Point2 &p) |
| GEOMEXPORT void | PreRotate (float angle) |
| GEOMEXPORT void | PreScale (const Point2 &s, BOOL trans=FALSE) |
| GEOMEXPORT void | SetTranslate (const Point2 &s) |
| GEOMEXPORT void | SetRotate (float angle) |
| GEOMEXPORT void | Invert () |
| GEOMEXPORT Matrix2 | operator* (const Matrix2 &B) const |
| GEOMEXPORT Matrix2 | operator+ (const Matrix2 &B) const |
| GEOMEXPORT Matrix2 | operator- (const Matrix2 &B) const |
| GEOMEXPORT IOResult | Save (ISave *isave) |
| GEOMEXPORT 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
| GEOMEXPORT Matrix2 | ( | float(*) | fp[2] | ) |
| GEOMEXPORT void IdentityMatrix | ( | ) |
| GEOMEXPORT void Zero | ( | ) |
| Point2 GetRow | ( | int | i | ) | const [inline] |
{ return (*this)[i]; }
| GEOMEXPORT void SetRow | ( | int | i, |
| Point2 | p | ||
| ) | [inline] |
{ (*this)[i] = p; }
| GEOMEXPORT Point3 GetColumn | ( | int | i | ) |
| GEOMEXPORT void SetColumn | ( | int | i, |
| Point3 | col | ||
| ) |
| GEOMEXPORT 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]; }
| GEOMEXPORT void Translate | ( | const Point2 & | p | ) |
| GEOMEXPORT void Rotate | ( | float | angle | ) |
| GEOMEXPORT void Scale | ( | const Point2 & | s, |
| BOOL | trans =
FALSE |
||
| ) |
| GEOMEXPORT void PreTranslate | ( | const Point2 & | p | ) |
| GEOMEXPORT void PreRotate | ( | float | angle | ) |
| GEOMEXPORT void PreScale | ( | const Point2 & | s, |
| BOOL | trans =
FALSE |
||
| ) |
| GEOMEXPORT void SetTranslate | ( | const Point2 & | s | ) |
| GEOMEXPORT void SetRotate | ( | float | angle | ) |
| GEOMEXPORT void Invert | ( | ) |
| float m[3][2] |