Merge pull request #33 from fabtjar/patch-1

Use correct rect overlap check
This commit is contained in:
Noel Berry 2023-02-21 17:59:58 -08:00 committed by GitHub
commit 72fb034103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -727,7 +727,7 @@ namespace Blah
template<class T> template<class T>
constexpr bool Rect<T>::overlaps(const Rect& rect) const { constexpr bool Rect<T>::overlaps(const Rect& rect) const {
return x + w >= rect.x && y + h >= rect.y && x < rect.x + rect.w && y < rect.y + rect.h; return x + w > rect.x && y + h > rect.y && x < rect.x + rect.w && y < rect.y + rect.h;
} }
template<class T> template<class T>