From d4d4b779aa2889ef7988cf16084a59249809438a Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 1 Mar 2016 19:11:43 +0100 Subject: COMMON: Fix Rect::intersects doc --- common/rect.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/rect.h') diff --git a/common/rect.h b/common/rect.h index 32424d3e6a..e6534e55d3 100644 --- a/common/rect.h +++ b/common/rect.h @@ -163,7 +163,8 @@ struct Rect { * * @param r the rectangle to check * - * @return true if the given rectangle is inside the rectangle, false otherwise + * @return true if the given rectangle has a non-empty intersection with + * this rectangle, false otherwise */ bool intersects(const Rect &r) const { return (left < r.right) && (r.left < right) && (top < r.bottom) && (r.top < bottom); -- cgit v1.2.3