b -= amt;
}
+
+double Rect::Width(void)
+{
+ return r - l;
+}
+
+
+double Rect::Height(void)
+{
+ return t - b;
+}
+
+
+bool Rect::Contains(Point p)
+{
+ return ((p.x >= l) && (p.x <= r) && (p.y >= b) && (p.y <= t) ? true : false);
+}
+
+
+Point Rect::TopLeft(void)
+{
+ return Point(t, l);
+}
+
+
+Point Rect::BottomRight(void)
+{
+ return Point(b, r);
+}
+