4x4 matrix in column major order
| | | | | | ------- | ------- | -------- | | | data[0] | data[4] | data[8] | data[12] | | data[1] | data[5] | data[9] | data[13] | | data[2] | data[6] | data[10] | data[14] | | data[3] | data[7] | data[11] | data[15] |
Determinant of the upper left 2x2 matrix
Get the scale of the matrix
Resets the current matrix to the identity matrix, mutating it
Current matrix as identity
Applies rotation to the current matrix mutating it
in Radians
Applies scaling to the current matrix mutating it
Converts the current matrix into a DOMMatrix
This is useful when working with the browser Canvas context
DOMMatrix
Applies translation to the current matrix mutating it
Creates a new identity matrix (a matrix that when applied does nothing)
Creates an orthographic (flat non-perspective) projection https://en.wikipedia.org/wiki/Orthographic_projection
Creates a brand new rotation matrix with the specified angle
Creates a brand new scaling matrix with the specified scaling factor
Creates a brand new translation matrix at the specified 3d point
Excalibur Matrix helper for 4x4 matrices
Useful for webgl 4x4 matrices