Poly2d.ClosestSegment (Point2d, out Double) Method

Computes the index of the closest segment in the poly from a given point. If the poly has less than two nodes (=0 segments), an exception will be thrown.
Public Function ClosestSegment( _ 
ByVal pt As Point2d, _ 
ByRef dist As Double
) As Integer
This language is not supported or no code example is available.
public int ClosestSegment( 
Point2d pt
out double dist 
)
This language is not supported or no code example is available.
public:  
int ClosestSegment( 
Point2d^ pt
double& dist 
)
This language is not supported or no code example is available.
public function ClosestSegment( 
pt : Point2d
dist : double 
) : int;
This language is not supported or no code example is available.

Parameters

pt
Point2d

The point to be as close as possible to.

dist
double

Set to the distance to the actual segment found.

Return Value

int

The index of the segment closest to the point.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition