Rectangle.add

Destructively replaces the x, y, width and height values in the receiver with ones which represent the union of the rectangles specified by the receiver and the given rectangle. <p> The union of two rectangles is the smallest single rectangle that completely covers both of the areas covered by the two given rectangles. </p>

@param rect the rectangle to merge with the receiver

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

class Rectangle
void
add

Meta