midPointTo method

Point midPointTo(
  1. Point other
)

Midpoint between this point and other

Implementation

Point midPointTo(Point other) {
  return Point((x + other.x) / 2, (y + other.y) / 2);
}