1 /* === S Y N F I G ========================================================= */
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2007 Chris Moore
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 /* === H E A D E R S ======================================================= */
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
54 const double infinity(HUGE_VAL);
55 return Rect(-infinity, -infinity, infinity, infinity);
59 Rect::horizontal_strip(const value_type &y1, const value_type &y2)
61 const double infinity(HUGE_VAL);
62 return Rect(-infinity, y1, infinity, y2);
66 Rect::vertical_strip(const value_type &x1, const value_type &x2)
69 const double infinity(HUGE_VAL);
70 return Rect(x1, -infinity, x2, infinity);