diff --git a/include/blah_spatial.h b/include/blah_spatial.h index 4193662..dd44784 100644 --- a/include/blah_spatial.h +++ b/include/blah_spatial.h @@ -727,7 +727,7 @@ namespace Blah template constexpr bool Rect::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