distanceSquared method

double distanceSquared(
  1. Mappoint point
)

Implementation

double distanceSquared(Mappoint point) {
  return (x - point.x) * (x - point.x) + (y - point.y) * (y - point.y);
}