Mat2 is an interface for 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.
The module mat2 contains functions to manipulate objects conforming to this interface
mat2
Example usage:
import { Mat2 } from '@spissvinkel/maths'; Copy
import { Mat2 } from '@spissvinkel/maths';
The value at row 0, column 0
The value at row 0, column 1
The value at row 1, column 0
The value at row 1, column 1
Generated using TypeDoc
Mat2
is an interface for 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.
The module
mat2
contains functions to manipulate objects conforming to this interfaceExample usage: