Matrix

Matrix

Matrix with Row x Col components.

Constructor

new Matrix(rows, cols)

Parameters:
Name Type Description
rows number

Number of rows.

cols number

Number of columns.

Members

data :Float32Array

Column-major storage for the matrix components.

Methods

(static) setupAliases(prototype, aliases)

Binds aliases to the different matrix components.

Parameters:
Name Type Description
prototype Object

The prototype to bind to.

aliases Array.<Array.<string>>

Array of component aliases for each component index.