25    Interval() : min(+INFINITY),max(-INFINITY) {}
 
   30    double size()
 const {
return max - min;}
 
   38    bool contains(
double x)
 const {
return min <= x && x <= max;}
 
   46    bool surrounds(
double x)
 const {
return min <= x && x <= max;}
 
   56        return Interval(min - delta,max + delta);
 
Definition: interval.hpp:21
bool contains(double x) const
Returns if the value is within, border value returns true.
Definition: interval.hpp:38
bool surrounds(double x) const
Returns if the value is within, border value returns false.
Definition: interval.hpp:46
Interval expand(double delta) const
Expand the interval by delta on both ends.
Definition: interval.hpp:55