rhodonite
    Preparing search index...

    Interface IMatrix33

    Interface for immutable 3x3 matrices. Provides specific operations for 3D transformations without translation.

    interface IMatrix33 {
        _v: Float32Array;
        className: string;
        isIdentityMatrixClass: boolean;
        m00: number;
        m01: number;
        m02: number;
        m10: number;
        m11: number;
        m12: number;
        m20: number;
        m21: number;
        m22: number;
        at(row_i: number, column_i: number): number;
        clone(): IMatrix33;
        determinant(): number;
        flattenAsArray(): number[];
        isDummy(): boolean;
        isEqual(mat: IMatrix33, delta?: number): boolean;
        isStrictEqual(mat: IMatrix33): boolean;
        isTheSourceSame(arrayBuffer: ArrayBuffer): boolean;
        toString(): string;
        toStringApproximately(): string;
        v(i: number): number;
    }

    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

    m00: number

    Element at row 0, column 0

    m01: number

    Element at row 0, column 1

    m02: number

    Element at row 0, column 2

    m10: number

    Element at row 1, column 0

    m11: number

    Element at row 1, column 1

    m12: number

    Element at row 1, column 2

    m20: number

    Element at row 2, column 0

    m21: number

    Element at row 2, column 1

    m22: number

    Element at row 2, column 2

    Methods

    • 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 this matrix is approximately equal to another matrix.

      Parameters

      • mat: IMatrix33

        Matrix to compare against

      • Optionaldelta: number

        Optional tolerance for comparison (default: small epsilon)

      Returns boolean

      True if matrices are approximately equal

    • 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

    • Gets the value at the specified linear index.

      Parameters

      • i: number

        Linear index in the internal array

      Returns number

      Value at the specified index