Rectangle.contains

Returns <code>true</code> if the given point is inside the area specified by the receiver, and <code>false</code> otherwise.

@param pt the point to test for containment @return <code>true</code> if the rectangle contains the point and <code>false</code> otherwise

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the argument is null</li> </ul>

  1. bool contains(int x, int y)
  2. bool contains(Point pt)
    class Rectangle
    bool
    contains

Meta