Represents a 3x3 matrix. The elements are stored in a Float32Array
in column-major order to optimise handoff to WebGL.
Name | Description |
---|---|
Matrix3
|
Constructs a new 4x4 matrix. |
Name | Description |
---|---|
elements
|
The matrix elements. |
Constructs a new 3x3 matrix. Parameters are supplied in row-major order to aid readability. If called with no parameters, all matrix elements are initialised to 0. If called with any parameters, make sure you supply all 9 values.
Name | Type | Description |
---|---|---|
m11 |
Number |
optional
The value for row 0, column 0. Defaults to0.0 .
|
m12 |
Number |
optional
The value for row 0, column 1. Defaults to0.0 .
|
m13 |
Number |
optional
The value for row 0, column 2. Defaults to0.0 .
|
m21 |
Number |
optional
The value for row 1, column 0. Defaults to0.0 .
|
m22 |
Number |
optional
The value for row 1, column 1. Defaults to0.0 .
|
m23 |
Number |
optional
The value for row 1, column 2. Defaults to0.0 .
|
m31 |
Number |
optional
The value for row 2, column 0. Defaults to0.0 .
|
m32 |
Number |
optional
The value for row 2, column 1. Defaults to0.0 .
|
m33 |
Number |
optional
The value for row 2, column 2. Defaults to0.0 .
|
The matrix elements.