GG
|
#include <PtRect.h>
Public Attributes | |
Pt | ul |
Pt | lr |
Structors | |
Rect () | |
Rect (const Pt &pt1, const Pt &pt2) | |
Rect (X x1, Y y1, X x2, Y y2) |
Accessors | |
X | Left () const |
X | Right () const |
Y | Top () const |
Y | Bottom () const |
Pt | UpperLeft () const |
Pt | LowerRight () const |
X | Width () const |
Y | Height () const |
bool | Contains (const Pt &pt) const |
Mutators | |
void | operator+= (const Pt &pt) |
void | operator-= (const Pt &pt) |
A GG rectangle class.
This is essentially just two points that bound the rectangle.