Helper interface to work with matricies.

Hierarchy

  • Matrix

Methods

  • Generate a 2D transformation matrix with the given scale factor and translation.

    Parameters

    • scaleX: number

      The horizontal scale factor.

    • scaleY: number

      The vertical scale factor.

    • posX: number

      The horizontal translation.

    • posY: number

      The vertical translation.

    Returns MatrixObject

    A 2D transformation matrix.

  • Generate the identity matrix which will map to itself.

    Returns MatrixObject

    A 2D identity matrix.

  • Checks if all members of the matrix are finite aka a valid number.

    Parameters

    Returns boolean

    True if all members of the matrix are finite.

  • Perform a matrix multiplication.

    Parameters

    Returns MatrixObject

    The result of the matrix multiplication.

Generated using TypeDoc