日期:2014-05-18 浏览次数:20881 次
class Point
{
public double x, y;
public Point()
{
this.x = 0;
this.y = 0;
}
public Point(double x, double y)
{
this.x = x;
this.y = y;
}
public static double Distance(Point a, Point b)
{
double xdf = a.x - b.y;
double ydf = a.y - b.y;
return Math.Sqrt(xdf*xdf+ydf*ydf);
}