Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Utility Class / IntersectionRect Method
First rectangle min point
First rectangle max point
Second rectangle min point
Second rectangle max point
Intersection rectangle min point
Intersection rectangle max point

In This Topic
    IntersectionRect Method
    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 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
    public static Size2D IntersectionRect( 
       Point2D firstMin,
       Point2D firstMax,
       Point2D secondMin,
       Point2D secondMax,
       out Point2D intersMin,
       out Point2D intersMax
    )

    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