Rectangle.intersects

Returns <code>true</code> if the given rectangle intersects with the receiver and <code>false</code> otherwise. <p> Two rectangles intersect if the area of the rectangle representing their intersection is not empty. </p>

@param rect the rectangle to test for intersection @return <code>true</code> if the rectangle intersects with the receiver, and <code>false</code> otherwise

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

@see #intersection(Rectangle) @see #isEmpty()

  1. bool intersects(int x, int y, int width, int height)
  2. bool intersects(Rectangle rect)
    class Rectangle
    bool
    intersects

Meta