Interface Matrix

A rectangular array of numbers, arranged in rows and columns.

Matrix

interface Matrix {
    height: number;
    width: number;
    get frob(): number;
    add(matrix: Matrix4Like): MatrixLike;
    clone(): MatrixLike;
    copy(matrix: Matrix4Like): this;
    equals(matrix: Matrix4Like): boolean;
    exactEquals(matrix: Matrix4Like): boolean;
    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

  • Copy the values of another matrix into this one.

    Parameters

    Returns this

    This matrix.

  • 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.