Export (0) Print
Expand All

Rectangle.Intersect Method (Rectangle, Rectangle)

Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.

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

public static Rectangle Intersect (
         Rectangle value1,
         Rectangle value2
)

Parameters

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

Return Value

The area where the two parameters overlap.

If the two rectangles do not overlap, the resulting Rectangle will be empty.

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

Community Additions

ADD
Show:
© 2014 Microsoft