phaser - v3.90.0
    Preparing search index...

    A three-dimensional matrix.

    Defaults to the identity matrix when instantiated.

    Index

    Constructors

    • Parameters

      • Optionalm: Matrix3

        Optional Matrix3 to copy values from.

      Returns Matrix3

    Properties

    val: Float32Array

    The matrix values.

    Methods

    • Calculate the adjoint, or adjugate, of this Matrix.

      Returns Matrix3

    • Make a clone of this Matrix3.

      Returns Matrix3

    • Copy the values of a given Matrix into this Matrix.

      Parameters

      • src: Matrix3

        The Matrix to copy the values from.

      Returns Matrix3

    • Calculate the determinant of this Matrix.

      Returns number

    • Set the values of this Matrix from the given array.

      Parameters

      • a: any[]

        The array to copy the values from.

      Returns Matrix3

    • Copy the values of a given Matrix4 into this Matrix3.

      Parameters

      Returns Matrix3

    • Set the values of this Matrix from the given Quaternion.

      Parameters

      • q: Quaternion

        The Quaternion to set the values of this Matrix from.

      Returns Matrix3

    • Reset this Matrix to an identity (default) matrix.

      Returns Matrix3

    • Invert this Matrix.

      Returns Matrix3

    • Multiply this Matrix by the given Matrix.

      Parameters

      • src: Matrix3

        The Matrix to multiply this Matrix by.

      Returns Matrix3

    • Set the values of this Matrix3 to be normalized from the given Matrix4.

      Parameters

      • m: Math.Matrix4

        The Matrix4 to normalize the values from.

      Returns Matrix3

    • Apply a rotation transformation to this Matrix.

      Parameters

      • rad: number

        The angle in radians to rotate by.

      Returns Matrix3

    • This method is an alias for Matrix3.copy.

      Parameters

      • src: Matrix3

        The Matrix to set the values of this Matrix's from.

      Returns Matrix3

    • Transpose this Matrix.

      Returns Matrix3