Preparing search index...

    A 3x3 matrix type supporting common linear algebra operations.

    Index

    Constructors

    • Constructs a new identity mat3 matrix.

      Returns mat3

    Properties

    column0: vec3

    First column vector of the matrix.

    column1: vec3

    Second column vector of the matrix.

    column2: vec3

    Third column vector of the matrix.

    description: string

    Human-readable description string for this matrix instance.

    Methods

    • Adds another mat3 to this matrix and returns the result.

      Parameters

      Returns mat3

    • Returns the scalar determinant of this matrix.

      Returns number

    • Divides this matrix by another mat3 element-wise and returns the result.

      Parameters

      Returns mat3

    • Returns true if this matrix equals the given mat3.

      Parameters

      Returns boolean

    • Returns a mat3 identity matrix.

      Returns mat3

    • Returns the inverse of this matrix.

      Returns mat3

    • Constructs a mat3 rotation matrix from a given angle or rotation value.

      Parameters

      Returns mat3

    • Multiplies this matrix by another mat3 and returns the result.

      Parameters

      Returns mat3

    • Multiplies all elements of this matrix by a scalar value and returns the result.

      Parameters

      • scalar: number

      Returns mat3

    • Subtracts another mat3 from this matrix and returns the result.

      Parameters

      Returns mat3

    • Returns a string representation of this matrix.

      Returns string

    • Returns the transpose of this matrix.

      Returns mat3

    • Returns a mat3 with all elements set to zero.

      Returns mat3