Zia.Matrix3 Class

Represents a 3x3 matrix. The elements are stored in a Float32Array in column-major order to optimise handoff to WebGL.

Constructor

Name Description
Matrix3 Constructs a new 4x4 matrix.

Properties

Name Description
elements

The matrix elements.


Constructor

new Zia.Matrix3 (m11, m12, m13, m21, m22, m23, m31, m32, m33) constructor

Defined in Matrix3.js:52

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.

Parameters

Name Type Description
m11 Number optional

The value for row 0, column 0.

Defaults to 0.0.
m12 Number optional

The value for row 0, column 1.

Defaults to 0.0.
m13 Number optional

The value for row 0, column 2.

Defaults to 0.0.
m21 Number optional

The value for row 1, column 0.

Defaults to 0.0.
m22 Number optional

The value for row 1, column 1.

Defaults to 0.0.
m23 Number optional

The value for row 1, column 2.

Defaults to 0.0.
m31 Number optional

The value for row 2, column 0.

Defaults to 0.0.
m32 Number optional

The value for row 2, column 1.

Defaults to 0.0.
m33 Number optional

The value for row 2, column 2.

Defaults to 0.0.

Properties

elements Float32Array property

Defined in Matrix3.js:57

The matrix elements.