Fix interval tree

This commit is contained in:
Ilusha 2024-03-07 12:45:24 +03:00 committed by Ilya Shurupov
parent 3eadb0d726
commit 0f455dd33b
2 changed files with 11 additions and 3 deletions

View file

@ -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{};