MathRoutinesLineIntersection Method (PointFloat, PointFloat, PointFloat, PointFloat, PointFloat) |
LightningChart .NET Help
Calculates intersection point of two lines. Line 1: goes through A1 and A2.
Line 2: goes through B1 and B2.
Algorithm copied from http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/
Namespace:
Arction.WinForms.Charting
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic static bool LineIntersection(
PointFloat a1,
PointFloat a2,
PointFloat b1,
PointFloat b2,
out PointFloat intersection
)
Public Shared Function LineIntersection (
a1 As PointFloat,
a2 As PointFloat,
b1 As PointFloat,
b2 As PointFloat,
<OutAttribute> ByRef intersection As PointFloat
) As Boolean
public:
static bool LineIntersection(
PointFloat a1,
PointFloat a2,
PointFloat b1,
PointFloat b2,
[OutAttribute] PointFloat% intersection
)
Parameters
- a1
- Type: Arction.WinForms.ChartingPointFloat
Line A point 1. - a2
- Type: Arction.WinForms.ChartingPointFloat
Line A point 2. - b1
- Type: Arction.WinForms.ChartingPointFloat
Line B point 1. - b2
- Type: Arction.WinForms.ChartingPointFloat
Line B point 2. - intersection
- Type: Arction.WinForms.ChartingPointFloat
Intersection point output
Return Value
Type:
BooleanSuccess status. Returns false if could not solve the intersection.
See Also