lnagb.js Documentation

Matrix3

Contains the Matrix3 class, which encodes 3 x 3 matrices in linear algebra.

Author: Zach / cszach@proton.me


Matrix3~Matrix3

Encodes 3 x 3 matrices.

Kind: inner class of Matrix3
See: Matrix for common properties


new Matrix3(a, b, c, d, e, f, g, h, i)

All parameters are optional and default to 0.

Param Type Default Description
a number 0 The (1, 1)-entry of the new 3 x 3 matrix
b number 0 The (1, 2)-entry
c number 0 The (1, 3)-entry
d number 0 The (2, 1)-entry
e number 0 The (2, 2)-entry
f number 0 The (2, 3)-entry
g number 0 The (3, 1)-entry
h number 0 The (3, 2)-entry
i number 0 The (3, 3)-entry

matrix3.multiply(matrix) ⇒ Matrix3

Multiplies this matrix by another 3 x 3 matrix.

Kind: instance method of Matrix3
Returns: Matrix3 - This matrix

Param Type Description
matrix matrix The 3 x 3 matrix to post-multiply this matrix to.