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:

import * as mat2 from '@spissvinkel/maths/mat2';

Index

Functions

Generated using TypeDoc