-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
Milestone
Description
- cocos2d-x version: v3
cocos2d-x/cocos/math/CCGeometry.cpp
Lines 176 to 187 in 18a6d82
bool Rect::containsPoint(const Vec2& point) const | |
{ | |
bool bRet = false; | |
if (point.x >= getMinX() && point.x <= getMaxX() | |
&& point.y >= getMinY() && point.y <= getMaxY()) | |
{ | |
bRet = true; | |
} | |
return bRet; | |
} |
As issue #2423 was closed as far as I can see with somehow unrelated commits, I simply wanted to ask, if it is really wanted behavior to have an inclusive containsPoint method. My expectation would have been, that it should be exclusive.