Calculates the distance-squared to another point.
| 52 | |
| 53 | // Calculates the distance-squared to another point. |
| 54 | double sqDist(const Point& other) const |
| 55 | { |
| 56 | return (x - other.x) * (x - other.x) + (y - other.y) * (y - other.y); |
| 57 | } |
| 58 | |
| 59 | const double x; |
| 60 | const double y; |