From 680344945f84364fbbcbe4d4a353a52d4a724653 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 16 Jul 2008 21:36:19 +0000 Subject: update to latest 2geom (rev1497) (bzr r6332) --- src/2geom/rect.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/2geom/rect.h') diff --git a/src/2geom/rect.h b/src/2geom/rect.h index 27a475cf3..a136e91a8 100644 --- a/src/2geom/rect.h +++ b/src/2geom/rect.h @@ -55,6 +55,10 @@ class D2 { private: Interval f[2]; public: + /* The default constructor creates a rect that contains the point (0,0). Isn't it better to have it be empty? + * i.e. f[X] = f[Y] = Interval(); . Don't use Interval(+COORD_HUGE, -COORD_HUGE) !! because the arguments + * will be interchanged to Interval(-COORD_HUGE, +COORD_HUGE)!! + */ D2() { f[X] = f[Y] = Interval(0, 0); } D2(Interval const &a, Interval const &b) { -- cgit v1.2.3