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