|
Public Member Functions |
|
| QInterval (const double min, const double max) |
| | Constructor.
|
|
virtual | ~QInterval () |
| | Destructor.
|
|
bool | operator< (const QInterval &interval) const |
| | Less than operator like std::pair.
|
|
bool | Contains (const double value) const |
| | Return whether the interval contains a value.
|
|
bool | Contains (const QInterval &interval) const |
| | Return whether the interval contains another interval.
|
|
double | GetMax () const |
| | Get maximum of interval.
|
|
double | GetMin () const |
| | Get minimum of interval.
|
|
bool | Intersects (const QInterval &interval) const |
| | Return whether the interval intersects another interval.
|
|
double | Length () const |
| | Get length of interval.
|
|
void | SetMax (const double max) |
| | Set maximum of the interval.
|
|
void | SetMin (const double min) |
| | Set minimum of the interval.
|
Protected Attributes |
|
double | fMax |
| | Maximum of interval.
|
|
double | fMin |
| | Minimum of interval.
|