Rect.union

Function/Meaning

Rectangle composition

Type
Rectclassmethod of
Syntax
union(r)
Arguments
r

Specifies the rectangular object to combine.

Return value

Whether or not synthesis is performed

Explanation

Extends the rectangle with the specified rectangle object.
The value of the target rectangle is the value that is larger in the direction in which the rectangle size expands with the quadrilateral value of the specified rectangle object.
Executed only if the target rectangle is not empty, not if it is empty, and returns false.

Reference
Rect.isEmpty