**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
Rect::full_plane()
{
const double infinity(HUGE_VAL);
- return Rect(
- -infinity,
- -infinity,
- infinity,
- infinity
- );
+ return Rect(-infinity, -infinity, infinity, infinity);
+}
+
+Rect
+Rect::horizontal_strip(const value_type &y1, const value_type &y2)
+{
+ const double infinity(HUGE_VAL);
+ return Rect(-infinity, y1, infinity, y2);
+}
+
+Rect
+Rect::vertical_strip(const value_type &x1, const value_type &x2)
+{
+ const double infinity(HUGE_VAL);
+ return Rect(x1, -infinity, x2, infinity);
}