Function setMat4Translation

  • Creates a new matrix that replaces the translation in the rightmost column of the given affine matrix with the provided translation vector.

    Parameters

    • m: Mat4

      The matrix to modify.

    • translation: Vec3

      The new translation vector.

    • dest: Mat4

      The matrix to store the result.

    Returns Mat4

    The resulting matrix with the updated translation.