#include <stack3.h>
Public Member Functions |
|
GEOMEXPORT | Matrix3Stack () |
GEOMEXPORT | Matrix3Stack (int depth) |
GEOMEXPORT | ~Matrix3Stack () |
BOOL | replace (const Matrix3 &m) |
BOOL | push (const Matrix3 &m) |
BOOL | dup (void) |
BOOL | concat (const Matrix3 &m) |
Matrix3 & | get (void) |
Matrix3 & | pop (void) |
BOOL | remove (void) |
BOOL | reset (void) |
GEOMEXPORT Matrix3Stack | ( | ) |
GEOMEXPORT Matrix3Stack | ( | int | depth | ) |
GEOMEXPORT ~Matrix3Stack | ( | ) |
BOOL replace | ( | const Matrix3 & | m | ) | [inline] |
{ stk[index] = m; return TRUE; }
BOOL push | ( | const Matrix3 & | m | ) | [inline] |
{ stk[index++] = m; return index < maxDepth; }
BOOL dup | ( | void | ) | [inline] |
{ stk[index+1] = stk[index]; return ++index < maxDepth; }
BOOL concat | ( | const Matrix3 & | m | ) | [inline] |
{ stk[index] = m * stk[index]; return TRUE; }
Matrix3& get | ( | void | ) | [inline] |
{ return stk[index]; }
Matrix3& pop | ( | void | ) | [inline] |
{ return stk[index--]; }
BOOL remove | ( | void | ) | [inline] |
{ return --index >= 0; }
BOOL reset | ( | void | ) | [inline] |
{ index = 0; stk[0].IdentityMatrix(); return TRUE; }