floor method

  1. @override
Vector2 floor()
override

Implementation

@override
Vector2 floor() {
  x = x.floorToDouble();
  y = y.floorToDouble();

  return this;
}