IMathDistancePointToPolygon Method

Calculate the distance between a point and a polygon.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistancePointToPolygon(
	PointD P,
	IPolyClass Polygon,
	out PointD PonPolygon
)

Parameters

P  PointD
Point of interest.
Polygon  IPolyClass
Polygon to calculate distance.
PonPolygon  PointD
The second point who ist nearest to the frist point on the polyon.

Return Value

Double
Distance between point and polygon.

See Also