Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Segment2D Class / Intersection Method / Intersection(Segment2D,Segment2D,Point2D) Method
First line
Second line
Intersection point (when it exists)

In This Topic
    Intersection(Segment2D,Segment2D,Point2D) 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 _
    ) As Boolean
    public static bool Intersection( 
       Segment2D s1,
       Segment2D s2,
       out Point2D i0
    )

    Parameters

    s1
    First line
    s2
    Second line
    i0
    Intersection point (when it exists)

    Return Value

    True if the intersection exists, false otherwise (parallel or disjoint).
    Remarks
    If return value is true and i0 is null, the segments are collinear and overlapping.Be aware that both segments must have Lenght > 0.
    See Also