mat2 is a collection of functions to manipulate Mat2 2x2 matrix objects.
mat2
The primary use for a Mat2 object is as a 2D rotation matrix.
A "column-major" ordering is assumed, suitable for e.g. WebGL
Example usage:
import * as mat2 from '@spissvinkel/maths/mat2'; Copy
import * as mat2 from '@spissvinkel/maths/mat2';
Generated using TypeDoc
mat2
is a collection of functions to manipulate Mat2 2x2 matrix objects.The primary use for a Mat2 object is as a 2D rotation matrix.
A "column-major" ordering is assumed, suitable for e.g. WebGL
Example usage: