0_0_36233482_12812.cpp: In function 'int getCircleCircleIntersection(Circle, Circle, Point&, Point&)':
0_0_36233482_12812.cpp:39:13: error: 'dcmp' was not declared in this scope
if (dcmp(d) == 0) { //首先圆心要重合
^
0_0_36233482_12812.cpp:43:27: error: 'dcmp' was not declared in this scope
if (dcmp(C1.r + C2.r - d) < 0) return 0; //相离没交点
^
0_0_36233482_12812.cpp:44:33: error: 'dcmp' was not declared in this scope
if (dcmp(fabs(C1.r - C2.r) - d) > 0) return 0; //圆在圆中,没有交点
^
0_0_36233482_12812.cpp:48:19: error: 'dcmp' was not declared in this scope
if (dcmp(a.x-b.x)==0&&dcmp(a.y-b.y)==0) return 1; //相切
^
0_0_36233482_12812.cpp: In function 'bool isInCircle(Point, Circle)':
0_0_36233482_12812.cpp:52:46: error: 'dcmp' was not declared in this scope
return dcmp(Dist2(p, cir.c) - cir.r * cir.r) < 0;
^
|