munum - v0.3.0
    Preparing search index...

    Interface Mat<N>

    A N x N matrix.

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

    Type Parameters

    • N extends 2 | 3 | 4

    Implemented by

    Index
    • Adds RHS to this matrix.

      Parameters

      Returns this

    • Calculates the determinant of this matrix.

      Returns number

    • Inverts this matrix.

      Returns boolean

    • Scales this matrix by given factor.

      Parameters

      • factor: number

      Returns this

    • Subtracts RHS from this matrix.

      Parameters

      Returns this

    • Transposes this matrix.

      Returns this