Utility.DoOverlapOrTouch2D (Point2D, Point2D, Point2D, Point2D, Double) Method

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

Parameters

firstMin
Point2D

First rectangle min 2D point

firstMax
Point2D

First rectangle max 2D point

secondMin
Point2D

Second rectangle min 2D point

secondMax
Point2D

Second rectangle max 2D point

domainSize
double

The 2D domain size

Return Value

bool

True if the two rectangle overlap or coincide, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition