Interface Matrix

( interface Matrix )

interface Matrix {
    elements: number[];
    identity(): Matrix;
    copy(m: this): this;
    multiplyScalar(s: number): Matrix;
    determinant(): number;
    transpose(): Matrix;
    invert(): Matrix;
    clone(): Matrix;
}

Implemented by

Properties

elements: number[]

Array with matrix values.

Methods

  • identity():T;

    Returns Matrix

  • copy(m:T):T;

    Parameters

    • m: this

    Returns this

  • multiplyScalar(s:number):T;

    Parameters

    • s: number

    Returns Matrix

  • Returns number

  • transpose():T;

    Returns Matrix

  • invert():T;

    Returns Matrix

  • clone():T;

    Returns Matrix