public double Dist(PointE point) { double x = X - point.X; double y = Y - point.Y; return Math.Sqrt(x * x + y * y); }