| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #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;
-
- };
|