#ifndef __GEOMETRICS_HPP #define __GEOMETRICS_HPP #include typedef struct LINE { POINT p1; POINT p2; } LINE; BOOL intersect(POINT l1p1, POINT l1p2, POINT l2p1, POINT l2p2); BOOL intersect(LINE l1, LINE l2); BOOL insidepoly(POINT p, const POINT *pt, int pts); BOOL polysintersect(const POINT *p1, const int pts1, const POINT *p2, const int pts2); BOOL rectintersectpoly(RECT r, const POINT *p, int pts); class polygonTester { HRGN hRgnPoly; const POINT *pt; int pts; public: polygonTester(const POINT *Pt, int Pts); ~polygonTester(); BOOL inside(POINT p); }; #endif