A坐标为(x1,y1) B为(x2,y2)则 AB距离为 (x1-x2)2+(y1-y2)2 (表示根号)
坐标距离计算
原文:http://www.cnblogs.com/liuzhendongvip/p/6480626.html