Rectangle.intersect

Destructively replaces the x, y, width and height values in the receiver with ones which represent the intersection of the rectangles specified by the receiver and the given rectangle.

@param rect the rectangle to intersect with the receiver

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

since 3.0

class Rectangle
void
intersect

Meta