摘要:
#define LINEINTERSECT_CROSS(ps,pe,p) ((pe->x-ps->x)*(p->y-ps->y)-(p->x-ps->x)*(pe->y-ps->y)) typedef struct XPOINT32Ftag { double x; double y; XPOINT32Ftag(double _x, double _y) { ... 阅读全文
摘要:
#include #include #define _SnapSame(x1, x2, lfSnap) (0==lfSnap?x1==x2:fabs(x1-x2)x2-lfSnap) #define _SnapLarge2(x1, x2, lfSnap) (x1>x2+lfSnap) //-1在外面,0在上面,1在里面 int PtInRegionEx(dou... 阅读全文