Function translate

  • Translates the given 4-by-4 matrix by the given vector v.

    Parameters

    • m: Mat4

      The matrix.

    • v: Vec3

      The vector by which to translate.

    • Optional dst: Mat4

      matrix to hold result. If not passed a new one is created.

    Returns Mat4

    The translated matrix.