• 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: Mat4 = ...

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

    Returns Mat4

    The resulting matrix after applying the translation.