rhodonite
    Preparing search index...

    Interface IMutableMatrix

    Interface for mutable matrix operations. Extends IMatrix with methods that modify the matrix in place.

    interface IMutableMatrix {
        _v: Float32Array;
        className: string;
        isIdentityMatrixClass: boolean;
        _swap(l: number, r: number): void;
        at(row_i: number, column_i: number): number;
        clone(): IMutableMatrix;
        copyComponents(mat: IMatrix): IMutableMatrix;
        determinant(): number;
        flattenAsArray(): number[];
        identity(): IMutableMatrix;
        invert(): IMutableMatrix;
        isDummy(): boolean;
        isTheSourceSame(arrayBuffer: ArrayBuffer): boolean;
        multiply(mat: IMatrix): IMutableMatrix;
        multiplyByLeft(mat: IMatrix): IMutableMatrix;
        multiplyScale(vec: IVector): IMutableMatrix;
        raw(): TypedArray;
        rotate(any: any): IMutableMatrix;
        scale(vec: IVector): IMutableMatrix;
        setAt(row_i: number, column_i: number, value: number): void;
        setComponents(...num: number[]): IMutableMatrix;
        toString(): string;
        toStringApproximately(): string;
        transpose(): IMutableMatrix;
        v(i: number): number;
        zero(): IMutableMatrix;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    _v: Float32Array

    Internal typed array storing matrix data in column-major order

    className: string

    Returns the class name of the matrix implementation

    isIdentityMatrixClass: boolean

    Indicates if this matrix is an identity matrix class

    Methods

    • Swaps two elements in the internal array.

      Parameters

      • l: number

        Left index

      • r: number

        Right index

      Returns void

    • Gets the value at the specified row and column.

      Parameters

      • row_i: number

        Row index (0-based)

      • column_i: number

        Column index (0-based)

      Returns number

      Value at the specified position

    • Checks if the internal array buffer is the same as the provided one.

      Parameters

      • arrayBuffer: ArrayBuffer

        Array buffer to compare against

      Returns boolean

      True if the source is the same

    • Sets the value at the specified row and column.

      Parameters

      • row_i: number

        Row index (0-based)

      • column_i: number

        Column index (0-based)

      • value: number

        Value to set

      Returns void

    • Gets the value at the specified linear index.

      Parameters

      • i: number

        Linear index in the internal array

      Returns number

      Value at the specified index