求教两点坐标距离问题
计算(x1, y1)和(x2, y2)两点之间的距离。所有的数和返回值都应该是double类型的。
2007-05-23 17:33
public static double distance(double x1,
double y1,
double x2,
double y2)
x1 - the X coordinate of the first specified point
y1 - the Y coordinate of the first specified point
x2 - the X coordinate of the second specified point
y2 - the Y coordinate of the second specified point
2007-05-23 18:22
2007-05-23 20:54
2007-05-23 22:28
2007-05-23 22:29
2007-05-23 22:41
2007-05-23 22:52
2007-05-24 17:24