IMathDistancePointToInfLine(PointF, PointF, PointF, PointF) Method
Calculates the distance between a point and a straight line through LineP1 and LineP2.
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static double DistancePointToInfLine(
PointF PointDistance,
PointF LineP1,
PointF LineP2,
out PointF DestinationPoint
)
Public Shared Function DistancePointToInfLine (
PointDistance As PointF,
LineP1 As PointF,
LineP2 As PointF,
<OutAttribute> ByRef DestinationPoint As PointF
) As Double
public:
static double DistancePointToInfLine(
PointF PointDistance,
PointF LineP1,
PointF LineP2,
[OutAttribute] PointF% DestinationPoint
)
static member DistancePointToInfLine :
PointDistance : PointF *
LineP1 : PointF *
LineP2 : PointF *
DestinationPoint : PointF byref -> float
- 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?
Doubledistance between nearest point and the PointDistance.