Utility.IntersectionRect Method

Computes the intersection rectangle between two axis aligned rectangles. This function assumes that the two rectangles overlap.
Public Shared Function IntersectionRect( _ 
ByVal firstMin As Point2D, _ 
ByVal firstMax As Point2D, _ 
ByVal secondMin As Point2D, _ 
ByVal secondMax As Point2D, _ 
ByRef intersMin As Point2D, _ 
ByRef intersMax As Point2D
) As Size2D
This language is not supported or no code example is available.
public static Size2D IntersectionRect( 
Point2D firstMin
Point2D firstMax
Point2D secondMin
Point2D secondMax
out Point2D intersMin
out Point2D intersMax 
)
This language is not supported or no code example is available.

Parameters

firstMin
Point2D

First rectangle min point

firstMax
Point2D

First rectangle max point

secondMin
Point2D

Second rectangle min point

secondMax
Point2D

Second rectangle max point

intersMin
Point2D

Intersection rectangle min point

intersMax
Point2D

Intersection rectangle max point

Return Value

Size2D

The size of the intersection rectangle

.NET Framework

Supported in: 4.8

In this article

Definition