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)
+{
+ int i, j;
+ const double infinity(HUGE_VAL);
+ return Rect(x1, -infinity, x2, infinity);
}
static Rect full_plane();
+ static Rect horizontal_strip(const value_type &y1, const value_type &y2);
+ static Rect vertical_strip(const value_type &x1, const value_type &x2);
+
static Rect zero()
{
return Rect(