Rectangle.intersects

Returns <code>true</code> if the rectangle described by the arguments 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 x the x coordinate of the origin of the rectangle @param y the y coordinate of the origin of the rectangle @param width the width of the rectangle @param height the height of the rectangle @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()

@since 3.0

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

Meta