union


Description:

public void union (Rectangle src2, out Rectangle dest)

Calculates the union of two rectangles.

The union of rectangles this and src2 is the smallest rectangle which includes both this and src2 within it. It is allowed for dest to be the same as either this or src2.

Note that this function does not ignore 'empty' rectangles (ie. with zero width or height).

Parameters:

this

a Rectangle

src2

a Rectangle

dest

return location for the union of this and src2