Rectangle.contains

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

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

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

Meta