union method

union

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Returns

A third RectangleF structure that contains both of the two rectangles that form the union.

def union(self, a, b):
    ...
ParameterTypeDescription
aRectangleFA first rectangle to union.
bRectangleFA second rectangle to union.

See Also