union


Description:

public Rect union (Rect b)

Computes the union of the two given rectangles.

![](rectangle-union.png)

The union in the image above is the blue outline.

Parameters:

this

a Rect

b

a Rect

res

return location for a Rect