求教啊,菜鸟一枚。
TestLineLine( const GO_Line &A, const GO_Line &B )
{
double mpt1[3],mpt2[3];
int posi_11, posi_12, posi_21, posi_22 ;
SegmentSegmentPosition Posi_Ss ;
double zero_error =ZERO_ERROR_FAULT;
Posi_Ss = (SegmentSegmentPosition)segmentSegment(A.pts[i-1].xyz, A.pts[i].xyz, B.pts[j-1].xyz, B.pts[j].xyz, zero_error,mpt1, &posi_11, &posi_12, mpt2, &posi_21, &posi_22 );
}
出现的问题是:
f:\工作文件\workspace\geometryobject\geometryobject\gofunction.cpp(633) : error C2664: 'segmentSegment' : cannot convert parameter 1 from 'const double [3]' to 'double []'
Conversion loses qualifiers
主要是我的_segmentSegment_函数里的参数没有一个是const类型的,难道我在_TestLineLine_函数中申明的两个const变量会影响函数体内普通变量mpt的定义么?