round method

Vector2 round()

Implementation

Vector2 round() {
  x = Math.round(x).toDouble();
  y = Math.round(y).toDouble();

  return this;
}