Interface SquareMatrix

A matrix with the same number of rows and columns.

interface SquareMatrix {
    height: number;
    width: number;
    get determinant(): number;
    get frob(): number;
    add(matrix: Matrix4Like): MatrixLike;
    adjoint(): MatrixLike;
    clone(): MatrixLike;
    copy(matrix: Matrix4Like): this;
    equals(matrix: Matrix4Like): boolean;
    exactEquals(matrix: Matrix4Like): boolean;
    identity(): this;
    invert(): MatrixLike;
    multiply(matrix: Matrix4Like): MatrixLike;
    multiplyScalar(scalar: number): MatrixLike;
    multiplyScalarAndAdd(matrix: Matrix4Like, scalar: number): MatrixLike;
    subtract(matrix: Matrix4Like): MatrixLike;
    transpose(): MatrixLike;
}

Hierarchy (view full)

Implemented by

Properties

height: number

The number of rows in this matrix.

width: number

The number of columns in this matrix.

Accessors

Methods

  • Determine whether or not this matrix is roughly equivalent to another.

    Parameters

    Returns boolean

    Whether the matrices are equivalent.

  • Determine whether or not this matrix is exactly equivalent to another.

    Parameters

    Returns boolean

    Whether the matrices are equivalent.