round method

Point<int> round()

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

Implementation

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