IMathDistancePointToEdge Method

Calculate the distance between a point and an edge.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistancePointToEdge(
	PointD p,
	IEdge e,
	ref PointD eP
)

Parameters

p  PointD
any PointD
e  IEdge
the IEdge object
eP  PointD
the point on the edge with the shortest way to the Point

Return Value

Double
Distance between p and eP

See Also