Interface Mat2

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 interface

Example usage:

import { Mat2 } from '@spissvinkel/maths';

Hierarchy

  • Mat2

Properties

Properties

r0c0: number

The value at row 0, column 0

r0c1: number

The value at row 0, column 1

r1c0: number

The value at row 1, column 0

r1c1: number

The value at row 1, column 1

Generated using TypeDoc