round method

CustomPoint<int> round()

Create new CustomPoint where x and y is rounded to int

Implementation

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