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

Check if two bounding boxes overlap or touch.
Public Shared Function DoOverlapOrTouch2D( _ 
ByVal firstMin As Point2D, _ 
ByVal firstMax As Point2D, _ 
ByVal secondMin As Point2D, _ 
ByVal secondMax As Point2D
) 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 
)
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

Return Value

bool

True if the two boxes overlap or touch, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition