Utility.DoOverlap2D (Point, Point, Point, Point) Method

Check if two bounding rectangles overlap.
Public Shared Function DoOverlap2D( _ 
ByVal firstMin As Point, _ 
ByVal firstMax As Point, _ 
ByVal secondMin As Point, _ 
ByVal secondMax As Point
) As Boolean
This language is not supported or no code example is available.
public static bool DoOverlap2D( 
Point firstMin
Point firstMax
Point secondMin
Point secondMax 
)
This language is not supported or no code example is available.

Parameters

firstMin
Point

First rectangle min point

firstMax
Point

First rectangle max point

secondMin
Point

Second rectangle min point

secondMax
Point

Second rectangle max point

Return Value

bool

True if the two rectangles overlap, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition