X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Frect.h;h=23b79fff0a1ec041bbc3b97b94cab7ca7b4840bb;hb=3c890e51a9763ffcee49e15753453a7da248272b;hp=0098a8d54cd32066d2a0a5e6b3a969f4422206ec;hpb=41644f6a841b45cb6f1f7a96c93fd550f67a7974;p=architektonas diff --git a/src/rect.h b/src/rect.h index 0098a8d..23b79ff 100644 --- a/src/rect.h +++ b/src/rect.h @@ -13,16 +13,20 @@ struct Rect double l, r, t, b; Rect(); - Rect(double ll, double rr, double tt, double bb); + Rect(double tt, double ll, double bb, double rr); Rect(Point tl, Point br); + Rect(Point); Rect & operator*=(double scale); Rect & operator|=(Rect x); + Rect & operator+=(Point p); + double & operator[](int); void Normalize(void); void Translate(Point p); void Expand(double amt); double Width(void); double Height(void); bool Contains(Point p); + bool Contains(Rect r); Point TopLeft(void); Point TopRight(void); Point BottomLeft(void);