Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Segment2D Class / Intersection Method / Intersection(Segment2D,Segment2D,Point2D,Point2D,Double) Method
First segement
Second segment
Intersection point (when it exists)
Endpoint of the intersect segment [i0, i1] (when it exists)
The maximum diagonal size of the domain

In This Topic
    Intersection(Segment2D,Segment2D,Point2D,Point2D,Double) Method
    In This Topic
    Computes the intersection of two 2D segments.
    Syntax
    'Declaration
     
    Public Overloads Shared Function Intersection( _
       ByVal s1 As Segment2D, _
       ByVal s2 As Segment2D, _
       ByRef i0 As Point2D, _
       ByRef i1 As Point2D, _
       ByVal domainSize As Double _
    ) As segmentIntersectionType
    public static segmentIntersectionType Intersection( 
       Segment2D s1,
       Segment2D s2,
       out Point2D i0,
       out Point2D i1,
       double domainSize
    )

    Parameters

    s1
    First segement
    s2
    Second segment
    i0
    Intersection point (when it exists)
    i1
    Endpoint of the intersect segment [i0, i1] (when it exists)
    domainSize
    The maximum diagonal size of the domain

    Return Value

    The intersection type.
    Remarks
    Be aware that both segments must have Lenght > 0.
    See Also