两点之间的距离公式:
源码:
//获得平面上2点距离 double getPointToPointDis(double p1[2],double p2[2]) { return sqrt((p1[0]-p2[0])*(p1[0]-p2[0])+(p1[1]-p2[1])*(p1[1]-p2[1])); }
标签:p2,p1,double,距离,NX,两点,二次开发 From: https://www.cnblogs.com/KMould/p/16630628.html
两点之间的距离公式:
源码:
//获得平面上2点距离 double getPointToPointDis(double p1[2],double p2[2]) { return sqrt((p1[0]-p2[0])*(p1[0]-p2[0])+(p1[1]-p2[1])*(p1[1]-p2[1])); }
标签:p2,p1,double,距离,NX,两点,二次开发 From: https://www.cnblogs.com/KMould/p/16630628.html