( interface Matrix )

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

Implemented by

Properties

elements: number[]

Array with matrix values.

Methods

  • clone():T;

    Returns Matrix

  • copy(m:T):T;

    Parameters

    • m: this

    Returns this

  • Returns number

  • identity():T;

    Returns Matrix

  • invert():T;

    Returns Matrix

  • multiplyScalar(s:number):T;

    Parameters

    • s: number

    Returns Matrix

  • transpose():T;

    Returns Matrix