IMathDistanceEdgeToEdge Method

Calculate the distance between two edges.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistanceEdgeToEdge(
	IEdge Edge1,
	IEdge Edge2,
	ref PointD From,
	ref PointD To
)

Parameters

Edge1  IEdge
first edge, can be arc or line
Edge2  IEdge
second edge, can be arc or line
From  PointD
the start point of shortest way between the two edges
To  PointD
end point of shortest way

Return Value

Double
distance between from and to

See Also