3 #ifndef GEOMETRY_H_INCLUDE
4 #define GEOMETRY_H_INCLUDE
6 #include "Utility/DPoint.h"
9 # define CALL_TYPE __stdcall
23 bool PtInPolygon(DPoint *polygon,
int N, DPoint p);
24 bool PtInPolygonSet(DPoint *polygon,
int np,
unsigned char* edges, DPoint p);
25 bool PtOnLine(DPoint pt0, DPoint pt1, DPoint ptMouse,
double nWidth);
26 bool IntersectLines(DPoint &p0, DPoint &p1, DPoint &p2, DPoint &p3, DPoint* i);
27 void QuadraticToCubicBezier(DPoint &QP0, DPoint &QP1, DPoint &QP2,
28 DPoint *CP1, DPoint *CP2);
29 double PolygonArea(DPoint* polygon,
int nPoints);