floor method

Vector2 floor()

Implementation

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

  return this;
}