Interface Mat<N>

A N x N matrix.

interface Mat<N> {
    add(rhs): this;
    det(): number;
    invert(): boolean;
    mul(rhs): this;
    scale(factor): this;
    sub(rhs): this;
    transpose(): this;
}

Type Parameters

  • N extends 2 | 3 | 4

Implemented by

Methods

  • Adds RHS to this matrix.

    Parameters

    Returns this

  • Calculates the determinant of this matrix.

    Returns number

  • Inverts this matrix.

    Returns boolean

  • Multiplies RHS to this.

    Parameters

    Returns this

  • Scales this matrix by given factor.

    Parameters

    • factor: number

    Returns this

  • Subtracts RHS from this matrix.

    Parameters

    Returns this

  • Transposes this matrix.

    Returns this

Generated using TypeDoc