/********************************************************************** *< FILE: box2.h DESCRIPTION: CREATED BY: Dan Silva HISTORY: *> Copyright (c) 1994, All Rights Reserved. **********************************************************************/ #ifndef _BOX2_H #define _BOX2_H #include "ipoint2.h" #include "point2.h" #include class Box2: public RECT { public: DllExport Box2(); DllExport Box2(const IPoint2 a, const IPoint2 b); DllExport int IsEmpty(); DllExport void SetEmpty(); DllExport void Rectify(); // makes toppmax.x?1:0; } void SetEmpty() { pmin = Point2(1E30,1E30); pmax = -pmin; } FBox2& operator=(const FBox2& r) { pmin = r.pmin; pmax = r.pmax; return *this; } DllExport FBox2& operator+=(const Point2& p); DllExport FBox2& operator+=(const FBox2& b); DllExport int Contains(const Point2& p) const; // is point in this box? }; #endif