mat3
ClassA 3x3 matrix.
- Available on all platforms
Index
Properties
Methods
Constructors
Constructor
new mat3():
mat3
Returns
mat3
Properties
column0
column0:
vec3
The first column of the matrix.
column1
column1:
vec3
The second column of the matrix.
column2
column2:
vec3
The third column of the matrix.
description
description:
string
Returns a string representation of the matrix.
Methods
add()
add(
mat):mat3
Returns the result of adding the two matrices together.
Parameters
| Parameter | Type |
|---|---|
mat | mat3 |
Returns
mat3
determinant()
determinant():
number
Returns the determinant of the matrix.
Returns
number
div()
div(
mat):mat3
Returns the result of dividing the two matrices.
Parameters
| Parameter | Type |
|---|---|
mat | mat3 |
Returns
mat3
equal()
equal(
mat):boolean
Returns whether the two matrices are equal.
Parameters
| Parameter | Type |
|---|---|
mat | mat3 |
Returns
boolean
identity()
staticidentity():mat3
Returns the identity matrix.
Returns
mat3
inverse()
inverse():
mat3
Returns the inverse of the matrix.
Returns
mat3
makeFromRotation()
staticmakeFromRotation(rotation):mat3
Returns a matrix representing the specified rotation.
Parameters
| Parameter | Type |
|---|---|
rotation | quat |
Returns
mat3
mult()
mult(
mat):mat3
Returns the result of multiplying the two matrices.
Parameters
| Parameter | Type |
|---|---|
mat | mat3 |
Returns
mat3
multiplyScalar()
multiplyScalar(
scalar):mat3
Returns the result of scalar multiplying the matrix.
Parameters
| Parameter | Type |
|---|---|
scalar | number |
Returns
mat3
sub()
sub(
mat):mat3
Returns the result of subtracting the two matrices.
Parameters
| Parameter | Type |
|---|---|
mat | mat3 |
Returns
mat3
toString()
toString():
string
Returns a string representation of the matrix.
Returns
string
transpose()
transpose():
mat3
Returns the transpose of this matrix.
Returns
mat3
zero()
staticzero():mat3
Returns a matrix with all zero values.
Returns
mat3