MathRoutinesCalcTwoLinesIntersection Method (PointDouble2D, PointDouble2D, PointDouble2D, PointDouble2D, PointDouble2D) |
LightningChart .NET Help
Calculates intersection point of two lines. Line 1: goes through A1 and A2
Line 2: goes through B1 and B2
Namespace:
Arction.Wpf.ChartingMVVM
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic static bool CalcTwoLinesIntersection(
PointDouble2D a1,
PointDouble2D a2,
PointDouble2D b1,
PointDouble2D b2,
out PointDouble2D intersection
)
Public Shared Function CalcTwoLinesIntersection (
a1 As PointDouble2D,
a2 As PointDouble2D,
b1 As PointDouble2D,
b2 As PointDouble2D,
<OutAttribute> ByRef intersection As PointDouble2D
) As Boolean
public:
static bool CalcTwoLinesIntersection(
PointDouble2D a1,
PointDouble2D a2,
PointDouble2D b1,
PointDouble2D b2,
[OutAttribute] PointDouble2D% intersection
)
Parameters
- a1
- Type: Arction.Wpf.ChartingMVVMPointDouble2D
Line A point 1 - a2
- Type: Arction.Wpf.ChartingMVVMPointDouble2D
Line A point 2 - b1
- Type: Arction.Wpf.ChartingMVVMPointDouble2D
Line B point 1 - b2
- Type: Arction.Wpf.ChartingMVVMPointDouble2D
Line B point 2 - intersection
- Type: Arction.Wpf.ChartingMVVMPointDouble2D
intersection point output
Return Value
Type:
BooleanSuccess status. Returns false if could not solve the intersection
See Also