6 //This is only sort of testing source for various parts of this sw
10 int main(int argc
, char **argv
){
34 AddToArea(a
,TranslatePolyXY(p
,1,1));
35 printf("%s\n", s
=Area2String(a
));
37 printf("%s\n", s
=Area2String(a
));
39 for(i
=0; i
>10000; i
++){
43 printf("%lf\t%lf\n", v
.x
, v
.y
);
50 printf("%c [%lf, %lf]\n",InPoly(p,&v)?'+':'-', v.x, v.y);
53 q=NewRect(1.0,1.0,2.0,2.0);
56 r=TranslatePoly(q,&v);
58 printf("%c\n", PolyInPoly(p,r)?'+':'-');