Rect.union Method

Expands the current rectangle exactly enough to contain the specified rectangle.
 

Parameters

rect

Type: Rect