IMathDistancePointToPolygon Method
Calculate the distance between a point and a polygon.
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static double DistancePointToPolygon(
PointD P,
IPolyClass Polygon,
out PointD PonPolygon
)
Public Shared Function DistancePointToPolygon (
P As PointD,
Polygon As IPolyClass,
<OutAttribute> ByRef PonPolygon As PointD
) As Double
public:
static double DistancePointToPolygon(
PointD P,
IPolyClass^ Polygon,
[OutAttribute] PointD% PonPolygon
)
static member DistancePointToPolygon :
P : PointD *
Polygon : IPolyClass *
PonPolygon : PointD byref -> float
- 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.
DoubleDistance between point and polygon.