Rectangle.Union Method (Rectangle, Rectangle)

Creates a new Rectangle that exactly contains two other rectangles.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static Rectangle Union (
         Rectangle value1,
         Rectangle value2
)

Parameters

value1
The first Rectangle to contain.
value2
The second Rectangle to contain.

Return Value

The union of the two Rectangle parameters.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

ADD
Show: