Poly2d.ClosestNode (Point2d, out Double) Method

Computes the index of the closest node in the poly from a given point. If the poly is empty, an exception will be thrown.
public int ClosestNode( 
   Point2d pt
   out double dist 
)

Parameters

pt
Point2d

The point to be as close as possible to.

dist
double

Set to the distance to the actual node found.

Return Value

int

The index of the node 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