Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Utility Class / IsPointOnSegment Method

In This Topic
    IsPointOnSegment Method
    In This Topic
    Determines if a point in on a segment. First it checks if the parameter t for the projected point is between 0 and 1, then it checks if the test point is close enough to the segment.
    Syntax
    'Declaration
     
    Public Shared Function IsPointOnSegment( _
       ByVal testPoint As Point2D, _
       ByVal P0 As Point2D, _
       ByVal P1 As Point2D, _
       ByVal domainDiag As Double _
    ) As Boolean
    public static bool IsPointOnSegment( 
       Point2D testPoint,
       Point2D P0,
       Point2D P1,
       double domainDiag
    )

    Parameters

    testPoint
    P0
    P1
    domainDiag
    See Also