Rectangle.intersection

Returns a new rectangle which represents the intersection of the receiver and the given rectangle. <p> The intersection of two rectangles is the rectangle that covers the area which is contained within both rectangles. </p>

@param rect the rectangle to intersect with the receiver @return the intersection of the receiver and the argument

@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if the argument is null</li> </ul>

class Rectangle
intersection

Meta