#ifndef _rectangle_h_ #define _rectangle_h_ #include "point.h" class Rect { public: Rect( int x1 = 0, int y1 = 0, int x2 = 0, int y2 = 0 ); Rect( const Point& p1, const Point& p2 ); Rect( const Rect& other ); virtual ~Rect(); Point TopLeft(); Point BottomRight(); Point CenterPoint(); int Width(); int Height(); int left; int top; int right; int bottom; }; #endif