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