Handle zero-width intervals correctly

Fixes #101
Fixes #165
Closes #164
This commit is contained in:
Janik Rabe 2018-08-23 10:08:10 +02:00 committed by lauft
parent 0273987ae6
commit 4325ffa136
5 changed files with 74 additions and 15 deletions

View file

@ -51,7 +51,9 @@ public:
bool overlap (const Range&) const;
bool encloses (const Range&) const;
bool segmentContains (const Range&) const;
Range intersect (const Range&) const;
bool intersects (const Range&) const;
Range combine (const Range&) const;
std::vector <Range> subtract (const Range&) const;
time_t total () const;