Utility.DoOverlapOrTouchWithIntersectionBox Method

Checks if two Axis-Aligned Bounding-Boxes intersect and computes their intersection boxes size.
Public Shared Function DoOverlapOrTouchWithIntersectionBox( _ 
ByVal firstMin As Point3D, _ 
ByVal firstMax As Point3D, _ 
ByVal secondMin As Point3D, _ 
ByVal secondMax As Point3D, _ 
ByRef intersectionBox As Size3D
) As Boolean
This language is not supported or no code example is available.
public static bool DoOverlapOrTouchWithIntersectionBox( 
Point3D firstMin
Point3D firstMax
Point3D secondMin
Point3D secondMax
out Size3D intersectionBox 
)
This language is not supported or no code example is available.

Parameters

firstMin
Point3D

First box min point

firstMax
Point3D

First box max point

secondMin
Point3D

Second box min point

secondMax
Point3D

Second box max point

intersectionBox
Size3D

The size of the intersection box (null if there is not intersection)

Return Value

bool

True if the two AABB intersect.

.NET Framework

Supported in: 4.8

In this article

Definition