次の方法で共有


Rectangle.Intersect Method (Rectangle, Rectangle, Rectangle)

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

Syntax

'Declaration
Public Shared Sub Intersect ( _
         ref value1 As Rectangle, _
         ref value2 As Rectangle, _
         out result As Rectangle _
)
public static void Intersect (
         ref Rectangle value1,
         ref Rectangle value2,
         out Rectangle result
)
public:
static void Intersect(
         ref Rectangle value1,
         ref Rectangle value2,
         out Rectangle result
)

Parameters

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