请教一个问题:
AcGePoint3d pt [512],我现在存在两个坐标:
现在要比较AcGePoint3d pt [0]与AcGePoint3d pt [n]是否是同一个点!以便确定画图结束!
可是总是出错:
error C2664: 'Equal_Points' : cannot convert parameter 1 from 'class AcGePoint3d' to 'const double []'
请问AcGePoint3d 与const ads_point 该如何转换才好!
调用以下函数:
int Equal_Points (const ads_point p1, const ads_point p2) { // 指定误差范围 const ads_real Equality_Margin = (ads_real)0.00000001; int c ; for (c = X ; c <= Z ; c++) { if (fabs(p1[c] - p2[c]) > Equality_Margin) { return (0) ; } } return (1) ; } |