IMathDistancePointToLine(PointF, PointF, PointF, PointD) Method

Calculates the distance between a line and a point (PointDistance).

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistancePointToLine(
	PointF PointDistance,
	PointF LineP1,
	PointF LineP2,
	out PointD DestinationPoint
)

Parameters

PointDistance  PointF
The single point who is of interest.
LineP1  PointF
One of the line points.
LineP2  PointF
Second of the line points.
DestinationPoint  PointD
Where have they the nearest point on the line?

Return Value

Double
distance between nearest point and the PointDistance.

See Also