次の方法で共有


Rectangle.Intersect Method (Rectangle, Rectangle)

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

Syntax

'Declaration
Public Shared Function Intersect ( _
         value1 As Rectangle, _
         value2 As Rectangle _
) As Rectangle 
public static Rectangle Intersect (
         Rectangle value1,
         Rectangle value2
)
public:
static Rectangle Intersect(
         Rectangle value1,
         Rectangle value2
)

Parameters

Return Value

Type: Rectangle
The area where the two parameters overlap.

Remarks

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

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Rectangle Structure
Rectangle Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone