rect.containsPoint(p)
Return true if the point p is inside the rectangle (inclusive). Return false otherwise.
true
p
false