IMathDistancePointToInfLine(PointF, PointF, PointF, PointF) Method

Calculates the distance between a point and a straight line through LineP1 and LineP2.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static double DistancePointToInfLine(
	PointF PointDistance,
	PointF LineP1,
	PointF LineP2,
	out PointF 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  PointF
Where have they the nearest point on the straight line?

Return Value

Double
distance between nearest point and the PointDistance.

See Also