![]() |
The Matrix4x4 JavaScript class. Defines a four by four matrix container. More...
Public Slots | |
double | value (int row, int column) |
Retrieve single value from Matrix4x4. More... | |
Matrix4x4 & | setFromEulerAngles (double rx, double ry, double rz) |
Set matrix rotation from Euler angles. More... | |
Vector3d | axis (int axisIndex) |
Retrieve axis from Matrix4x4. More... | |
Point3d | origin () |
Retrieve Matrix4x4 origin. More... | |
bool | isEmpty () |
Test if Matrix4x4 is empty. More... | |
Matrix4x4 & | clear () |
Clear current Matrix4x4. More... | |
Matrix4x4 & | normalize () |
Normalize current Matrix4x4. More... | |
Matrix4x4 & | multiplyEq (Matrix4x4 m2) |
Multiply current Matrix4x4 with specified Matrix4x4. More... | |
QObject | multiply (Matrix4x4 m2) |
Multiply current Matrix4x4 with specified Matrix4x4. More... | |
Point3d | multiply (Point3d p) |
Multiply specified Point3d with current Matrix4x4. More... | |
QObject | multiply (Vector3d v) |
Multiply specified Vector3d with current Matrix4x4. More... | |
Matrix4x4 & | translate (Vector3d v) |
Translate current Matrix4x4 with specified Vector3d. More... | |
Matrix4x4 & | translate (double dx, double dy, double dz=0.0) |
Translate current Matrix4x4. More... | |
Matrix4x4 & | scale (double sx, double sy, double sz=1.0) |
Scale current Matrix4x4. More... | |
Matrix4x4 & | rotatePlane (Vector3d v, Point3d p) |
Rotate current Matrix4x4. More... | |
Matrix4x4 & | rotateRadians (double rad, Vector3d v) |
Rotate current Matrix4x4. More... | |
Matrix4x4 & | rotateDegrees (double deg, Vector3d v) |
Rotate current Matrix4x4. More... | |
Matrix4x4 & | skew (double sk) |
Shear current Matrix4x4. More... | |
Matrix4x4 & | orthogonalProject (double left, double right, double bottom, double top, double zNear, double zFar) |
Calculate an orthogonal projection Matrix4x4. More... | |
Matrix4x4 & | perspectiveProject (double left, double right, double bottom, double top, double zNear, double zFar) |
Calculate a perspective projection Matrix4x4. More... | |
Matrix4x4 & | perspectiveProject (double fovy, double ratio, double zNear, double zFar) |
Calculate a perspective projection Matrix4x4. More... | |
Matrix4x4 & | inverse () |
Invert current Matrix4x4. More... | |
Matrix4x4 | getInverse () |
Invert current Matrix4x4. More... | |
Matrix4x4 & | transpose () |
Transpose current Matrix4x4. More... | |
Matrix4x4 | getTranspose () |
Transpose current Matrix4x4. More... | |
Point3d | extractPosition (Point3d *pivot=NULL, bool force3d=false) |
Extract position from matrix. More... | |
Point3d | extractScale (Point3d *pivot=NULL, bool force3d=false) |
Extract scale from matrix. More... | |
Point3d | extractRotation (Point3d *pivot=NULL, bool force3d=false) |
Extract rotation from matrix. More... | |
double | extractSkew (Point3d *pivot=NULL) |
Extract skew from matrix. More... | |
void | print (String label) |
Public Member Functions | |
Matrix4x4 () | |
Create a new empty Matrix4x4. More... | |
Properties | |
double | m00 |
1st row and 1st column value More... | |
double | m01 |
1st row and 2nd column value More... | |
double | m02 |
1st row and 3rd column value More... | |
double | m03 |
1st row and 4th column value More... | |
double | m10 |
2nd row and 1st column value More... | |
double | m11 |
2nd row and 2nd column value More... | |
double | m12 |
2nd row and 3rd column value More... | |
double | m13 |
2nd row and 4th column value More... | |
double | m20 |
3rd row and 1st column value More... | |
double | m21 |
3rd row and 2nd column value More... | |
double | m22 |
3rd row and 3rd column value More... | |
double | m23 |
3rd row and 4th column value More... | |
double | m30 |
4th row and 1st column value More... | |
double | m31 |
4th row and 2nd column value More... | |
double | m32 |
4th row and 3rd column value More... | |
double | m33 |
4th row and 4th column value More... | |
The Matrix4x4 JavaScript class. Defines a four by four matrix container.
Matrix4x4 objects can be instantiated in the scripting environment.
Matrix4x4::Matrix4x4 | ( | ) |
Create a new empty Matrix4x4.
|
slot |
Extract position from matrix.
Extract rotation from matrix.
Extract scale from matrix.
|
slot |
Extract skew from matrix.
|
slot |
Test if Matrix4x4 is empty.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Set matrix rotation from Euler angles.
rx | Euler Angle first component |
ry | Euler Angle second component |
rz | Euler Angle third component |
|
slot |
|
slot |
|
slot |
|
readwrite |
1st row and 1st column value
|
readwrite |
1st row and 2nd column value
|
readwrite |
1st row and 3rd column value
|
readwrite |
1st row and 4th column value
|
readwrite |
2nd row and 1st column value
|
readwrite |
2nd row and 2nd column value
|
readwrite |
2nd row and 3rd column value
|
readwrite |
2nd row and 4th column value
|
readwrite |
3rd row and 1st column value
|
readwrite |
3rd row and 2nd column value
|
readwrite |
3rd row and 3rd column value
|
readwrite |
3rd row and 4th column value
|
readwrite |
4th row and 1st column value
|
readwrite |
4th row and 2nd column value
|
readwrite |
4th row and 3rd column value
|
readwrite |
4th row and 4th column value