IMathDistanceLineToLine Method
Distance line to line calculates the nearest points and returns the distance.
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static double DistanceLineToLine(
PointD Line1P1,
PointD Line1P2,
PointD Line2P1,
PointD Line2P2,
ref PointD DestinationPoint,
ref PointD SourcePoint
)
Public Shared Function DistanceLineToLine (
Line1P1 As PointD,
Line1P2 As PointD,
Line2P1 As PointD,
Line2P2 As PointD,
ByRef DestinationPoint As PointD,
ByRef SourcePoint As PointD
) As Double
public:
static double DistanceLineToLine(
PointD Line1P1,
PointD Line1P2,
PointD Line2P1,
PointD Line2P2,
PointD% DestinationPoint,
PointD% SourcePoint
)
static member DistanceLineToLine :
Line1P1 : PointD *
Line1P2 : PointD *
Line2P1 : PointD *
Line2P2 : PointD *
DestinationPoint : PointD byref *
SourcePoint : PointD byref -> float
- 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
DoubleDistance in mils.