Returns the Euclidean distance to another point.
double distanceTo(Point other) { final dx = x - other.x; final dy = y - other.y; return math.sqrt(dx * dx + dy * dy); }