Microsoft SDK for Java

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.