Description

A 4x4 matrix.

Constructors

  • Returns mat4

    Description

    Creates a new mat4, defaulting to identity values.

Properties

column0: vec4

Description

The first column of the matrix.

column1: vec4

Description

The second column of the matrix.

column2: vec4

Description

The third column of the matrix.

column3: vec4

Description

The fourth column of the matrix.

description: string

Description

Returns a string representation of the matrix.

Methods

  • Parameters

    Returns mat4

    Description

    Returns the result of adding the two matrices together.

  • Returns number

    Description

    Returns the determinant of the matrix.

  • Parameters

    Returns mat4

    Description

    Returns the result of dividing the two matrices.

  • Parameters

    Returns boolean

    Description

    Returns whether the two matrices are equal.

  • Returns vec3

    Description

    Returns an euler angle representation of this matrix's rotation, in radians.

  • Returns mat4

    Description

    Returns the inverse of the matrix.

  • Parameters

    Returns mat4

    Description

    Returns the result of multiplying the two matrices.

  • Parameters

    Returns vec3

    Description

    Returns the direction vector multiplied by this matrix.

  • Parameters

    Returns vec3

    Description

    Returns the point point multiplied by this matrix.

  • Parameters

    • scalar: number

    Returns mat4

    Description

    Returns the result of scalar multiplying the matrix.

  • Parameters

    Returns vec4

    Description

    Returns the vector multiplied by this matrix.

  • Parameters

    Returns mat4

    Description

    Returns the result of subtracting the two matrices.

  • Returns string

    Description

    Returns a string representation of the matrix.

  • Returns mat4

    Description

    Returns the transpose of this matrix.

Generated using TypeDoc