Example #1
0
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bool
cRect::surrounds(const cPoint& p) const
{
    return isAboveAndBelow(p) && isLeftAndRightOf(p);
}
Example #2
0
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bool
Rectangle::surrounds(const Vector2& p) const
{
    return isAboveAndBelow(p) && isLeftAndRightOf(p);
}