Rectangle.Intersects Method (Microsoft.Xna.Framework)

Gets whether or not the other Rectangle intersects with this rectangle.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public bool Intersects(
	Rectangle value

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Rectangle
The other rectangle for testing.

Return Value

Type: System.Boolean
true if other Rectangle intersects with this rectangle; false otherwise.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop