Additional Inherited Members |
bool | contains (const Interval< double > &other) const |
bool | contains (doublevalue) const |
double | end () const |
bool | intersects (const Interval< double > &other) const |
| IntervalBase () |
| IntervalBase (const IntervalBase< double > &other) |
| IntervalBase (doublestart, doubleend) |
QList< Interval< double > > | operator- (QList< Interval< double > > subtrahend) |
Interval< double > & | operator= (const Interval< double > &other) |
bool | operator== (const Interval< double > &other) const |
void | setEnd (doubleend) |
void | setStart (doublestart) |
double | start () const |
QString | toString () const |
| Return a string in the format '[start,end]'.
|
void | translate (doubleoffset) |
virtual | ~IntervalBase () |
static Interval< double > | intersection (const Interval< double > &first, const Interval< double > &second) |
| Return the intersection of two intervals.
|
static Interval< double > | merge (const Interval< double > &a, const Interval< double > &b) |
| Merge two intervals that touch or intersect.
|
static void | mergeIntervalIntoList (QList< Interval< double > > *list, Interval< double > i) |
| Merge an interval into a list.
|
static void | restrictList (QList< Interval< double > > *list, Interval< double > i) |
| Restrict all intervals in the list to their intersection with a given interval.
|
static QList< Interval< double > > | split (const Interval< double > &i, doublebefore) |
| Split an interval into two.
|
static QList< Interval< double > > | subtract (const Interval< double > &src_iv, const Interval< double > &minus_iv) |
| Subtract an interval from another.
|
static void | subtractIntervalFromList (QList< Interval< double > > *list, Interval< double > i) |
| Subtract an interval from all intervals in the list.
|
double | d_end |
| Interval end.
|
double | d_start |
| Interval start.
|