Rectangle.intersection

Rectangle.intersection

Class Overview | Class Members | This Package | All Packages

Syntax
public Rectangle intersection( Rectangle r )
Parameters
r
a rectangle.
Returns
the largest rectangle contained in both the specified rectangle and in this rectangle.
Description
Computes the intersection of this rectangle with the specified rectangle. Returns a new rectangle that represents the intersection of the two rectangles.