Rectangle.Intersects Method (Rectangle, Boolean)
Determines whether a specified Rectangle intersects with this Rectangle.
Syntax
'Declaration
Public Sub Intersects ( _
ref value As Rectangle, _
out result As Boolean _
)
public void Intersects (
ref Rectangle value,
out bool result
)
public:
void Intersects(
ref Rectangle value,
out bool result
)
Parameters
- value
Type: Rectangle
The Rectangle to evaluate - result
Type: Boolean
[OutAttribute] true if the specified Rectangle intersects with this one; false otherwise.
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