In This Topic
Computes the intersection rectangle between two axis aligned rectangles. This function assumes that the two rectangles overlap.
Syntax
'Declaration
Public Shared Function IntersectionRect( _
ByVal As Point2D, _
ByVal As Point2D, _
ByVal As Point2D, _
ByVal As Point2D, _
ByRef As Point2D, _
ByRef As Point2D _
) As Size2D
public static Size2D IntersectionRect(
Point2D ,
Point2D ,
Point2D ,
Point2D ,
out Point2D ,
out Point2D
)
Parameters
- firstMin
- First rectangle min point
- firstMax
- First rectangle max point
- secondMin
- Second rectangle min point
- secondMax
- Second rectangle max point
- intersMin
- Intersection rectangle min point
- intersMax
- Intersection rectangle max point
Return Value
The size of the intersection rectangle
See Also