Function translateMat4c

  • Efficiently applies a translation to the given matrix using separate components. This translation is post-concatenated to the existing matrix.

    Parameters

    • x: number

      The translation along the x-axis.

    • y: number

      The translation along the y-axis.

    • z: number

      The translation along the z-axis.

    • m: FloatArrayParam = ...

      The matrix to apply the translation to. Defaults to the identity matrix.

    Returns FloatArrayParam

    The resulting matrix after applying the translation.