floor method

CustomPoint<int> floor()
inherited

Create new CustomPoint whose x and y values are rounded down to int

Implementation

CustomPoint<T> floor() {
  return CustomPoint<T>(x.floor(), y.floor());
}