Rectangle.intersectsWith

Overview | Methods | Fields | ThisPackage | All Packages

Rectangle.intersectsWith

Retrieves a boolean value that indicates whether the specified rectangle intersects with this one.

Syntax

public boolean intersectsWith( Rectangle rect )

Parameters

rect

A Rectangle object that specifies the rectangle to compare to this one.

Return Value

Returns true if the rectangles intersect; otherwise, returns false.