获取两个点中距离第三个点最近的点
public XYZ Panduan(XYZ point1, XYZ point2, XYZ point3)
{
//获取距离最近的两个点
XYZ p1 = null;
if(point1.DistanceTo(point2)>= point1.DistanceTo(point3))
{
p1 = point3;
}
else
{
p1 = point2;
}
return p1;
}