| Property | Defined by | ||
|---|---|---|---|
| USE_FAST_MATH : Boolean = false [static]
Specifies whether to use fast math calculations.
| Matrix4Math | ||
| Method | Defined by | ||
|---|---|---|---|
|
[static]
Computes the addition of two Matrix4 matrices.
| Matrix4Math | ||
|
axisRotation(u:Number, v:Number, w:Number, angle:Number):Matrix4
[static]
Computes a rotation Matrix4 matrix for a general axis of rotation.
| Matrix4Math | ||
|
[static]
Computes a rotation Matrix4 matrix for a general axis of rotation.
| Matrix4Math | ||
|
[static]
Computes a Matrix4 matrix for a rotation around a specific axis through a specific point.
| Matrix4Math | ||
|
[static]
Returns the clone of a Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes the determinant of a Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes the 3x3 determinant of a Matrix4 matrix.
| Matrix4Math | ||
|
eulerRotation(ax:Number, ay:Number, az:Number):Matrix4
[static]
Computes a rotation Matrix4 matrix from the Euler angle in degrees.
| Matrix4Math | ||
|
[static]
Returns the inverse of a Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes the trace of a Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes the multiplication of two Matrix4 matrices.
| Matrix4Math | ||
|
[static]
Computes the multiplication of two Matrix4 matrices, as if they were 3x3.
| Matrix4Math | ||
|
[static]
Computes the multiplication of two Matrix4 matrices.
| Matrix4Math | ||
|
[static]
Computes a rotation Matrix4 matrix for an x axis rotation.
| Matrix4Math | ||
|
[static]
Computes a rotation Matrix4 matrix for an y axis rotation.
| Matrix4Math | ||
|
[static]
Computes a rotation Matrix4 matrix for an z axis rotation.
| Matrix4Math | ||
|
[static]
Computes a scale Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes a scale Matrix4 matrix from a scale vector.
| Matrix4Math | ||
|
translation(nTx:Number, nTy:Number, nTz:Number):Matrix4
[static]
Computes a translation Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Computes a translation Matrix4 matrix from a vector.
| Matrix4Math | ||
|
[static]
Multiplies a 3D vertex by a Matrix4 matrix.
| Matrix4Math | ||
|
[static]
Multiplies a 3D vector by a Matrix4 matrix as a 3x3 matrix.
| Matrix4Math | ||
| USE_FAST_MATH | property |
public static var USE_FAST_MATH:Boolean = falseSpecifies whether to use fast math calculations.
| addMatrix4 | () | method |
public static function addMatrix4(m1:Matrix4, m2:Matrix4):Matrix4Computes the addition of two Matrix4 matrices.
Parametersm1:Matrix4 — The first matrix.
|
|
m2:Matrix4 — The second matrix.
|
Matrix4 —
The resulting matrix.
|
| axisRotation | () | method |
public static function axisRotation(u:Number, v:Number, w:Number, angle:Number):Matrix4Computes a rotation Matrix4 matrix for a general axis of rotation.
[ToDo: My gosh! Explain this Thomas ;-) ]
Parametersu:Number — rotation X.
|
|
v:Number — rotation Y.
|
|
w:Number — rotation Z.
|
|
angle:Number — The angle of rotation in degrees.
|
Matrix4 —
The resulting matrix.
|
| axisRotationVector | () | method |
public static function axisRotationVector(v:Vector, angle:Number):Matrix4Computes a rotation Matrix4 matrix for a general axis of rotation.
Parametersv:Vector — The axis of rotation.
|
|
angle:Number — The angle of rotation in degrees.
|
Matrix4 —
The resulting matrix.
|
| axisRotationWithReference | () | method |
public static function axisRotationWithReference(axis:Vector, ref:Vector, pAngle:Number):Matrix4Computes a Matrix4 matrix for a rotation around a specific axis through a specific point.
NOTE - The axis must be normalized!
Parametersaxis:Vector — A vector representing the axis of rotation.
|
|
ref:Vector — The center of rotation.
|
|
pAngle:Number — The angle of rotation in degrees.
|
Matrix4 —
The resulting matrix.
|
| clone | () | method |
public static function clone(m:Matrix4):Matrix4Returns the clone of a Matrix4 matrix.
Parametersm:Matrix4 — The matrix to clone.
|
Matrix4 —
The resulting matrix.
|
| det | () | method |
public static function det(m:Matrix4):NumberComputes the determinant of a Matrix4 matrix.
Parametersm:Matrix4 — The matrix.
|
Number — The determinant.
|
| det3x3 | () | method |
public static function det3x3(m:Matrix4):NumberComputes the 3x3 determinant of a Matrix4 matrix.
Uses the upper left 3 by 3 elements.
Parametersm:Matrix4 — The matrix.
|
Number — The determinant.
|
| eulerRotation | () | method |
public static function eulerRotation(ax:Number, ay:Number, az:Number):Matrix4Computes a rotation Matrix4 matrix from the Euler angle in degrees.
Parametersax:Number — Angle of rotation around X axis in degrees.
|
|
ay:Number — Angle of rotation around Y axis in degrees.
|
|
az:Number — Angle of rotation around Z axis in degrees.
|
Matrix4 —
The resulting matrix.
|
| getInverse | () | method |
public static function getInverse(m:Matrix4):Matrix4Returns the inverse of a Matrix4 matrix.
Parametersm:Matrix4 — The matrix to invert.
|
Matrix4 —
The inverse Matrix4 matrix.
|
| getTrace | () | method |
public static function getTrace(m:Matrix4):NumberComputes the trace of a Matrix4 matrix.
The trace value is the sum of the element on the diagonal of the matrix.
Parametersm:Matrix4 — The matrix we want to compute the trace.
|
Number — The trace value.
|
| multiply | () | method |
public static function multiply(m1:Matrix4, m2:Matrix4):Matrix4Computes the multiplication of two Matrix4 matrices.
[ToDo: Explain this multiplication ]
Parametersm1:Matrix4 — The first matrix.
|
|
m2:Matrix4 — The second matrix.
|
Matrix4 —
The resulting matrix.
|
| multiply3x3 | () | method |
public static function multiply3x3(m1:Matrix4, m2:Matrix4):Matrix4Computes the multiplication of two Matrix4 matrices, as if they were 3x3.
Parametersm1:Matrix4 — The first matrix.
|
|
m2:Matrix4 — The second matrix.
|
Matrix4 —
The resulting matrix.
|
| multiply4x3 | () | method |
public static function multiply4x3(m1:Matrix4, m2:Matrix4):Matrix4Computes the multiplication of two Matrix4 matrices.
[ToDo: Explain this multiplication ]
Parametersm1:Matrix4 — The first matrix.
|
|
m2:Matrix4 — The second matrix.
|
Matrix4 —
The resulting matrix.
|
| rotationX | () | method |
public static function rotationX(angle:Number):Matrix4Computes a rotation Matrix4 matrix for an x axis rotation.
Parametersangle:Number — Angle of rotation.
|
Matrix4 —
The resulting matrix.
|
| rotationY | () | method |
public static function rotationY(angle:Number):Matrix4Computes a rotation Matrix4 matrix for an y axis rotation.
Parametersangle:Number — Angle of rotation.
|
Matrix4 —
The resulting matrix.
|
| rotationZ | () | method |
public static function rotationZ(angle:Number):Matrix4Computes a rotation Matrix4 matrix for an z axis rotation.
Parametersangle:Number — Angle of rotation.
|
Matrix4 —
The resulting matrix.
|
| scale | () | method |
public static function scale(nXScale:Number, nYScale:Number, nZScale:Number):Matrix4Computes a scale Matrix4 matrix.
|Sx 0 0 0| |0 Sy 0 0| |0 0 Sz 0| |0 0 0 1|Parameters
nXScale:Number — Scale factor in the x direction.
|
|
nYScale:Number — Scale factor in the y direction.
|
|
nZScale:Number — Scale factor in the z direction.
|
Matrix4 —
The resulting matrix.
|
| scaleVector | () | method |
public static function scaleVector(v:Vector):Matrix4Computes a scale Matrix4 matrix from a scale vector.
|Sx 0 0 0| |0 Sy 0 0| |0 0 Sz 0| |0 0 0 1|Parameters
v:Vector — The vector containing the scale values.
|
Matrix4 —
The resulting matrix.
|
| translation | () | method |
public static function translation(nTx:Number, nTy:Number, nTz:Number):Matrix4Computes a translation Matrix4 matrix.
|1 0 0 0| |0 1 0 0| |0 0 1 0| |Tx Ty Tz 1|Parameters
nTx:Number — Translation in the x direction.
|
|
nTy:Number — Translation in the y direction.
|
|
nTz:Number — Translation in the z direction.
|
Matrix4 —
The resulting matrix.
|
| translationVector | () | method |
public static function translationVector(v:Vector):Matrix4Computes a translation Matrix4 matrix from a vector.
|1 0 0 0| |0 1 0 0| |0 0 1 0| |Tx Ty Tz 1|Parameters
v:Vector — Translation Vector.
|
Matrix4 —
The resulting matrix.
|
| vectorMult | () | method |
public static function vectorMult(m:Matrix4, pv:Vector):VectorMultiplies a 3D vertex by a Matrix4 matrix.
Parametersm:Matrix4 — The matrix.
|
|
pv:Vector — The vertex.
|
Vector —
The resulting vector.
|
| vectorMult3x3 | () | method |
public static function vectorMult3x3(m:Matrix4, pv:Vector):VectorMultiplies a 3D vector by a Matrix4 matrix as a 3x3 matrix.
Uses the upper left 3 by 3 elements
Parametersm:Matrix4 — The matrix.
|
|
pv:Vector — The vector.
|
Vector —
The resulting vector.
|