μMath
    Preparing search index...

    Interface Matrix

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

    Matrix

    interface Matrix {
        add: (matrix: Readonly<Matrix4Like>) => MatrixLike;
        clone: () => MatrixLike;
        copy: (matrix: Readonly<Matrix4Like>) => this;
        equals: (matrix: Readonly<Matrix4Like>) => boolean;
        exactEquals: (matrix: Readonly<Matrix4Like>) => boolean;
        height: number;
        multiply: (matrix: Readonly<Matrix4Like>) => MatrixLike;
        multiplyScalar: (scalar: number) => MatrixLike;
        multiplyScalarAndAdd: (
            matrix: Readonly<Matrix4Like>,
            scalar: number,
        ) => MatrixLike;
        subtract: (matrix: Readonly<Matrix4Like>) => MatrixLike;
        transpose: () => MatrixLike;
        width: number;
        get frob(): number;
        [key: number]: number;
    }

    Hierarchy (View Summary)

    Implemented by

    Indexable

    • [key: number]: number
    Index

    Properties

    add: (matrix: Readonly<Matrix4Like>) => MatrixLike

    Add two matrices of the same size.

    Type Declaration

    clone: () => MatrixLike

    Create a copy of this matrix.

    Type Declaration

    copy: (matrix: Readonly<Matrix4Like>) => this

    Copy the values of another matrix into this one.

    Type Declaration

    equals: (matrix: Readonly<Matrix4Like>) => boolean

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

    Type Declaration

    exactEquals: (matrix: Readonly<Matrix4Like>) => boolean

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

    Type Declaration

    height: number

    The number of rows in this matrix.

    multiply: (matrix: Readonly<Matrix4Like>) => MatrixLike

    Multiply this matrix by another.

    Type Declaration

    multiplyScalar: (scalar: number) => MatrixLike

    Multiply this matrix by a scalar value.

    Type Declaration

      • (scalar: number): MatrixLike
      • Parameters

        • scalar: number

          The scalar value.

        Returns MatrixLike

        The product of the matrix and the scalar value.

    multiplyScalarAndAdd: (
        matrix: Readonly<Matrix4Like>,
        scalar: number,
    ) => MatrixLike

    Add this matrix to another after multiplying the other by a scalar.

    Type Declaration

    subtract: (matrix: Readonly<Matrix4Like>) => MatrixLike

    Subtract another matrix from this one.

    Type Declaration

    transpose: () => MatrixLike

    Transpose this matrix.

    Type Declaration

    width: number

    The number of columns in this matrix.

    Accessors