Utility.IsPointOnSegment Method

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.
Public Shared Function IsPointOnSegment( _ 
ByVal testPoint As Point2D, _ 
ByVal P0 As Point2D, _ 
ByVal P1 As Point2D, _ 
ByVal domainDiag As Double
) As Boolean
This language is not supported or no code example is available.
public static bool IsPointOnSegment( 
Point2D testPoint
Point2D P0
Point2D P1
double domainDiag 
)
This language is not supported or no code example is available.

Parameters

testPoint
Point2D

P0
Point2D

P1
Point2D

domainDiag
double

Return Value

bool

.NET Framework

Supported in: 4.8

In this article

Definition