Lens Scripting API

    Class mat3

    A 3x3 matrix.

    Index

    Constructors

    • Creates a new mat3, defaulting to identity values.

      Returns mat3

    Properties

    column0: vec3

    The first column of the matrix.

    column1: vec3

    The second column of the matrix.

    column2: vec3

    The third column of the matrix.

    description: string

    Returns a string representation of the matrix.

    Methods

    • Returns the result of adding the two matrices together.

      Parameters

      Returns mat3

    • Returns the determinant of the matrix.

      Returns number

    • Returns the result of dividing the two matrices.

      Parameters

      Returns mat3

    • Returns whether the two matrices are equal.

      Parameters

      Returns boolean

    • Returns the identity matrix.

      Returns mat3

    • Returns the inverse of the matrix.

      Returns mat3

    • Returns a matrix representing the specified rotation.

      Parameters

      Returns mat3

    • Returns the result of multiplying the two matrices.

      Parameters

      Returns mat3

    • Returns the result of scalar multiplying the matrix.

      Parameters

      • scalar: number

      Returns mat3

    • Returns the result of subtracting the two matrices.

      Parameters

      Returns mat3

    • Returns a string representation of the matrix.

      Returns string

    • Returns the transpose of this matrix.

      Returns mat3

    • Returns a matrix with all zero values.

      Returns mat3

    MMNEPVFCICPMFPCPTTAAATR