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

    Parameters

    • xyz: Vec3

      The translation vector to apply.

    • m: Mat4 = ...

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

    Returns Mat4

    The resulting matrix after applying the translation.