IMathCrossingPoint Method
Calculates the crossing point of two lines.
Namespace: PCBI.MathUtilsAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static PointD CrossingPoint(
PointD Line1P1,
PointD Line1P2,
PointD Line2P1,
PointD Line2P2,
bool CheckOnRoute
)
Public Shared Function CrossingPoint (
Line1P1 As PointD,
Line1P2 As PointD,
Line2P1 As PointD,
Line2P2 As PointD,
CheckOnRoute As Boolean
) As PointD
public:
static PointD CrossingPoint(
PointD Line1P1,
PointD Line1P2,
PointD Line2P1,
PointD Line2P2,
bool CheckOnRoute
)
static member CrossingPoint :
Line1P1 : PointD *
Line1P2 : PointD *
Line2P1 : PointD *
Line2P2 : PointD *
CheckOnRoute : bool -> PointD
- Line1P1 PointD
- One Point of the first Line.
- Line1P2 PointD
- Second Point of the first Line.
- Line2P1 PointD
- One Point of the second Line.
- Line2P2 PointD
- Second Point of the second Line.
- CheckOnRoute Boolean
- Should the result be on the lines?
PointDThe result point or InfPoint(Infinity) if there is no result.