Function setTranslation

  • Sets the translation component of a 4-by-4 matrix to the given vector.

    Parameters

    • a: Mat4

      The matrix.

    • v: Vec3

      The vector.

    • Optional dst: Mat4

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

    Returns Mat4

    The matrix with translation set.