2 small comments added.

This commit is contained in:
Sylvain Pion 1998-10-16 14:30:50 +00:00
parent 2009ad0abb
commit 4f8701d25b
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,8 @@ public:
}
else /* 0 \in [d.inf;d.sup] */
return CGAL_Interval_nt_advanced(-HUGE_VAL, HUGE_VAL);
// We could do slightly better -> [0;HUGE_VAL] when d.sup==0,
// but is this worth ?
}
CGAL_Interval_nt_advanced& operator+=(const CGAL_Interval_nt_advanced& d)
@ -265,6 +267,7 @@ public:
// This particular one needs to be redefined, a pitty...
// I should learn C++ before writing...
// Is that virtual functions ?
CGAL_Interval_nt operator-() const
{ return CGAL_Interval_nt(-(sup), inf); }