lnagb.js Documentation

Matrix4

Contains the Matrix4 class, which encodes 4 x 4 matrices in linear algebra.

Author: Zach / cszach@proton.me


Matrix4~Matrix4

Encodes 4 x 4 matrices.

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


new Matrix4(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p)

All parameters are optional and default to 0.

Param Type Default Description
a number 0 The (1, 1)-entry of the new 4 x 4 matrix
b number 0 The (1, 2)-entry
c number 0 The (1, 3)-entry
d number 0 The (1, 4)-entry
e number 0 The (2, 1)-entry
f number 0 The (2, 2)-entry
g number 0 The (2, 3)-entry
h number 0 The (2, 4)-entry
i number 0 The (3, 1)-entry
j number 0 The (3, 2)-entry
k number 0 The (3, 3)-entry
l number 0 The (3, 4)-entry
m number 0 The (4, 1)-entry
n number 0 The (4, 2)-entry
o number 0 The (4, 3)-entry
p number 0 The (4, 4)-entry

matrix4.multiply(matrix) ⇒ Matrix4

Multiplies this matrix by another 4 x 4 matrix.

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

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