Table of Contents
Chevron DownDeveloper Guide
Chevron DownAPI Reference

Matrix

Matrix is a base class for Matrix3 and Matrix4, providing common methods to those classes.

Methods

toString()

Returns a string representation of the matrix

setElement

Sets the element at "conceptual position" M[i][j], row major indices by default

matrix3.set(i, j, value, columnMajor = false)

getElement

Gets the element at "conceptual position" M[i][j], row major indices by default

matrix3.get(i, j, columnMajor = false)

getColumn(columnIndex : Number [ , result : Number[3]]) : Number[3]

Extracts a column from the matrix

setColumn(columnIndex : Number, columnVector : Number[3]) : Matrix

Copies a column into the matrix