|
CGM Objects Library
|
CMatrix – transform matrix class. More...
#include <Matrix.h>
Public Member Functions | |
| CMatrix () | |
| Default constructor - intialize to indentity matrix. | |
| CMatrix (double *mat) | |
| constructor - intialize to specified matrix | |
| CMatrix (double r0c0, double r0c1, double r1c0, double r1c1, double r2c0, double r2c1) | |
| constructor - intialize to specified values | |
| void | setToIdentity () |
| set indentity matrix | |
| void | setTransform (double r0c0, double r0c1, double r1c0, double r1c1, double r2c0, double r2c1) |
| set matrix to specified values | |
| void | setTransform (double *mat) |
| set matrix to specified matrix | |
| void | multiply (CMatrix &mat) |
| multiply matrix | |
| void | scale (DPoint scl) |
| scale matrix | |
| void | scale (double x, double y) |
| void | rotate (double radians) |
| rotate matrix | |
| void | translate (DPoint trans) |
| translate matrix | |
| void | translate (double x, double y) |
| bool | operator== (CMatrix &mat) |
| matrix equals operator | |
| bool | operator!= (CMatrix &mat) |
| matrix not-equals operator | |
| void | operator*= (CMatrix &mat) |
| DPoint | transformPt (DPoint point) |
| translate a point | |
| DPoint | transformVec (DPoint vec) |
| translate a vector | |
Public Attributes | |
| double | matrix [6] |
| matrix values | |
CMatrix – transform matrix class.
1.8.6