round method

  1. @override
Vector2 round()
override

Implementation

@override
Vector2 round() {
  x = x.roundToDouble();
  y = y.roundToDouble();

  return this;
}