IMathDistanceLineToLine Method

Distance line to line calculates the nearest points and returns the distance.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistanceLineToLine(
	PointD Line1P1,
	PointD Line1P2,
	PointD Line2P1,
	PointD Line2P2,
	ref PointD DestinationPoint,
	ref PointD SourcePoint
)

Parameters

Line1P1  PointD
First point of first line.
Line1P2  PointD
Second point of first line.
Line2P1  PointD
First point of second line.
Line2P2  PointD
Second point of second line.
DestinationPoint  PointD
nearest point on first line
SourcePoint  PointD
nearest point on second line

Return Value

Double
Distance in mils.

See Also