Class Mat2

A 2x2 matrix.

Hierarchy (view full)

Implements

Constructors

Properties

byteOffset: number

The offset in bytes of the array.

Accessors

  • get buffer(): ArrayBufferLike
  • The ArrayBuffer instance referenced by the array.

    Returns ArrayBufferLike

  • get byteLength(): number
  • The length in bytes of the array.

    Returns number

  • get length(): 4
  • The length of the array.

    Returns 4

  • get valid(): boolean
  • Whether the array is still valid.

    Returns boolean

Methods

  • Calculates the determinant of this matrix.

    Returns number

  • Scales this matrix by given factor.

    Parameters

    • factor: number

    Returns this

  • Subtracts RHS from this matrix.

    Parameters

    Returns this

Generated using TypeDoc