Function round

  • Applies Math.round to each element of vector

    Parameters

    • v: Vec2

      Operand vector.

    • Optional dst: Vec2

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

    Returns Vec2

    A vector that is the round of each element of v.