Retrieves a boolean value that indicates whether the specified rectangle intersects with this one.
public boolean intersectsWith( Rectangle rect )
rect
A Rectangle object that specifies the rectangle to compare to this one.
Returns true if the rectangles intersect; otherwise, returns false.