9 #ifndef _Q_INTERVAL_HH_
10 #define _Q_INTERVAL_HH_
#define Q_BEGIN_NAMESPACE
double min(const Diana::QVector &v)
Interval of real numbers.
bool operator<(const QInterval &interval) const
Less than operator like std::pair.
bool Contains(const QInterval &interval) const
Return whether the interval contains another interval.
double fMin
Minimum of interval.
double Length() const
Get length of interval.
bool Contains(const double value) const
Return whether the interval contains a value.
double fMax
Maximum of interval.
void SetMin(const double min)
Set minimum of the interval.
void SetMax(const double max)
Set maximum of the interval.
virtual ~QInterval()
Destructor.
double GetMax() const
Get maximum of interval.
double GetMin() const
Get minimum of interval.
bool operator==(const QInterval &other) const
operator==
bool Intersects(const QInterval &interval) const
Return whether the interval intersects another interval.
base class for objects handled by QEvent and QGlobalDataManager.