Matrix3
A 3x3 matrix.
Constructor Summary
Public Constructor | ||
public |
Constructs a new matrix. |
Member Summary
Public Members | ||
public |
The matrix elements. |
Method Summary
Public Methods | ||
public |
Clones this matrix. |
|
public |
Copies the values of a given matrix. |
|
public |
Calculates the determinant of this matrix. |
|
public |
Checks if this matrix equals the given one. |
|
public |
Copies the values of a given array. |
|
public |
getInverse(matrix: Matrix3): Matrix3 Inverts the given matrix and stores the result in this matrix. |
|
public |
Sets this matrix to the identity matrix. |
|
public |
Multiplies this matrix with a given one. |
|
public |
multiplyMatrices(a: Matrix3, b: Matrix3): Matrix3 Sets this matrix to the product of the given matrices. |
|
public |
multiplyScalar(s: Number): Matrix3 Multiplies this matrix with a given scalar. |
|
public |
premultiply(m: Matrix3): Matrix3 Multiplies a given matrix with this one. |
|
public |
Rotates this matrix. |
|
public |
Scales this matrix. |
|
public |
set(m00: Number, m01: Number, m02: Number, m10: Number, m11: Number, m12: Number, m20: Number, m21: Number, m22: Number): Matrix3 Sets the values of this matrix. |
|
public |
Stores this matrix in an array. |
|
public |
Translates this matrix. |
|
public |
Transposes this matrix. |
Public Constructors
Public Members
Public Methods
public copy(matrix: Matrix3): Matrix3 source
Copies the values of a given matrix.
Params:
Name | Type | Attribute | Description |
matrix | Matrix3 | A matrix. |
public equals(m: Matrix3): Boolean source
Checks if this matrix equals the given one.
Params:
Name | Type | Attribute | Description |
m | Matrix3 | A matrix. |
public fromArray(array: Number[], offset: Number): Matrix3 source
Copies the values of a given array.
public getInverse(matrix: Matrix3): Matrix3 source
Inverts the given matrix and stores the result in this matrix.
Params:
Name | Type | Attribute | Description |
matrix | Matrix3 | The matrix that should be inverted. |
public multiply(m: Matrix3): Matrix3 source
Multiplies this matrix with a given one.
Params:
Name | Type | Attribute | Description |
m | Matrix3 | A matrix. |
public multiplyMatrices(a: Matrix3, b: Matrix3): Matrix3 source
Sets this matrix to the product of the given matrices.
public multiplyScalar(s: Number): Matrix3 source
Multiplies this matrix with a given scalar.
Params:
Name | Type | Attribute | Description |
s | Number | A scalar. |
public premultiply(m: Matrix3): Matrix3 source
Multiplies a given matrix with this one.
Params:
Name | Type | Attribute | Description |
m | Matrix3 | A matrix. |
public rotate(theta: Number): Matrix3 source
Rotates this matrix.
Params:
Name | Type | Attribute | Description |
theta | Number | The rotation. |
public set(m00: Number, m01: Number, m02: Number, m10: Number, m11: Number, m12: Number, m20: Number, m21: Number, m22: Number): Matrix3 source
Sets the values of this matrix.
Params:
Name | Type | Attribute | Description |
m00 | Number | The value of the first row, first column. |
|
m01 | Number | The value of the first row, second column. |
|
m02 | Number | The value of the first row, third column. |
|
m10 | Number | The value of the second row, first column. |
|
m11 | Number | The value of the second row, second column. |
|
m12 | Number | The value of the second row, third column. |
|
m20 | Number | The value of the third row, first column. |
|
m21 | Number | The value of the third row, second column. |
|
m22 | Number | The value of the third row, third column. |