|
double | value (int row, int column) |
| Retrieve single value from Matrix4x4.
|
|
Vector3d | axis (int idx) |
| Retrieve reference to single value from Matrix4x4.
|
|
Point3d | origin () |
| Retrieve Matrix4x4 origin.
|
|
bool | isEmpty () |
| Test if Matrix4x4 is empty.
|
|
Matrix4x4 & | clear () |
| Clear current Matrix4x4.
|
|
Matrix4x4 & | normalize () |
| Normalize current Matrix4x4.
|
|
Matrix4x4 & | multiplyEq (Matrix4x4 m2) |
| Multiply current Matrix4x4 with specified Matrix4x4.
|
|
QObject | multiply (Matrix4x4 m2) |
| Multiply current Matrix4x4 with specified Matrix4x4.
|
|
Point3d | multiply (Point3d p) |
| Multiply specified Point3d with current Matrix4x4.
|
|
QObject | multiply (Vector3d v) |
| Multiply specified Vector3d with current Matrix4x4.
|
|
Matrix4x4 & | translate (Vector3d v) |
| Translate current Matrix4x4 with specified Vector3d.
|
|
Matrix4x4 & | translate (double dx, double dy, double dz=0.0) |
| Translate current Matrix4x4.
|
|
Matrix4x4 & | scale (double sx, double sy, double sz=1.0) |
| Scale current Matrix4x4.
|
|
Matrix4x4 & | rotatePlane (Vector3d v, Point3d p) |
| Rotate current Matrix4x4.
|
|
Matrix4x4 & | rotateRadians (double rad, Vector3d v) |
| Rotate current Matrix4x4.
|
|
Matrix4x4 & | rotateDegrees (double deg, Vector3d v) |
| Rotate current Matrix4x4.
|
|
Matrix4x4 & | skew (double sk) |
| Shear current Matrix4x4.
|
|
Matrix4x4 & | orthogonalProject (double left, double right, double bottom, double top, double zNear, double zFar) |
| Calculate an orthogonal projection Matrix4x4.
|
|
Matrix4x4 & | perspectiveProject (double left, double right, double bottom, double top, double zNear, double zFar) |
| Calculate a perspective projection Matrix4x4.
|
|
Matrix4x4 & | perspectiveProject (double fovy, double ratio, double zNear, double zFar) |
| Calculate a perspective projection Matrix4x4.
|
|
Matrix4x4 & | inverse () |
| Invert current Matrix4x4.
|
|
Matrix4x4 | getInverse () |
| Invert current Matrix4x4.
|
|
Matrix4x4 & | transpose () |
| Transpose current Matrix4x4.
|
|
Matrix4x4 | getTranspose () |
| Transpose current Matrix4x4.
|
|
Point3d | extractPosition (Point3d *pivot=NULL) |
| Extract position from matrix.
|
|
Point3d | extractScale (Point3d *pivot=NULL) |
| Extract scale from matrix.
|
|
Point3d | extractRotation (Point3d *pivot=NULL) |
| Extract rotation from matrix.
|
|
double | extractSkew (Point3d *pivot=NULL) |
| Extract skew from matrix.
|
|
void | print (String label) |
|
|
double | m00 |
| 1st row and 1st column value
|
|
double | m01 |
| 1st row and 2nd column value
|
|
double | m02 |
| 1st row and 3rd column value
|
|
double | m03 |
| 1st row and 4th column value
|
|
double | m10 |
| 2nd row and 1st column value
|
|
double | m11 |
| 2nd row and 2nd column value
|
|
double | m12 |
| 2nd row and 3rd column value
|
|
double | m13 |
| 2nd row and 4th column value
|
|
double | m20 |
| 3rd row and 1st column value
|
|
double | m21 |
| 3rd row and 2nd column value
|
|
double | m22 |
| 3rd row and 3rd column value
|
|
double | m23 |
| 3rd row and 4th column value
|
|
double | m30 |
| 4th row and 1st column value
|
|
double | m31 |
| 4th row and 2nd column value
|
|
double | m32 |
| 4th row and 3rd column value
|
|
double | m33 |
| 4th row and 4th column value
|
|
The Matrix4x4 class defines a four by four matrix container. Matrix4x4 objects can be instantiated in the scripting environment.
You can use it in both Script Editor and scriptModule.
m.rotateDegrees( 90, raxis );
m.scale( 2.0, 1.0, 2.0 );