floor method

Point<int> floor()

Create a new Point where the x and y values are rounded down to the nearest integer.

Implementation

Point<int> floor() {
  return Point<int>(x.floor(), y.floor());
}