IMathDistancePointToLine(PointD, PointD, PointD, PointD) Method
Calculates the distance between a line and a point (PointDistance).
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static double DistancePointToLine(
PointD PointDistance,
PointD LineP1,
PointD LineP2,
out PointD DestinationPoint
)
Public Shared Function DistancePointToLine (
PointDistance As PointD,
LineP1 As PointD,
LineP2 As PointD,
<OutAttribute> ByRef DestinationPoint As PointD
) As Double
public:
static double DistancePointToLine(
PointD PointDistance,
PointD LineP1,
PointD LineP2,
[OutAttribute] PointD% DestinationPoint
)
static member DistancePointToLine :
PointDistance : PointD *
LineP1 : PointD *
LineP2 : PointD *
DestinationPoint : PointD byref -> float
- PointDistance PointD
- The single point who is of interest.
- LineP1 PointD
- One of the line points.
- LineP2 PointD
- Second of the line points.
- DestinationPoint PointD
- Where have they the nearest point on the line?
Doubledistance between nearest point and the PointDistance.