IMathCrossingPoint Method

Calculates the crossing point of two lines.

Definition

Namespace: PCBI.MathUtils
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static PointD CrossingPoint(
	PointD Line1P1,
	PointD Line1P2,
	PointD Line2P1,
	PointD Line2P2,
	bool CheckOnRoute
)

Parameters

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?

Return Value

PointD
The result point or InfPoint(Infinity) if there is no result.

See Also