Fix interval tree
This commit is contained in:
parent
20ac8620e6
commit
23e7ecb812
2 changed files with 11 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ using namespace tp;
|
|||
|
||||
struct Interval {
|
||||
|
||||
[[nodiscard]] bool overlaps(const Interval& in) const { return in.start < end && in.end > start; }
|
||||
[[nodiscard]] bool overlaps(const Interval& in) const { return in.start <= end && in.end >= start; }
|
||||
|
||||
halnf start{};
|
||||
halnf end{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue