Click or drag to resize

MathRoutinesPointDistanceFromLine Method (PointFloat, PointFloat, PointFloat, PointFloat, Single)

LightningChart .NET Help
Calculates distance from line to point.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static float PointDistanceFromLine(
	PointFloat p1,
	PointFloat p2,
	PointFloat p3,
	out PointFloat linePoint,
	out float coeff
)

Parameters

p1
Type: Arction.WinForms.ChartingPointFloat
Line point 1.
p2
Type: Arction.WinForms.ChartingPointFloat
Line point 2.
p3
Type: Arction.WinForms.ChartingPointFloat
Point.
linePoint
Type: Arction.WinForms.ChartingPointFloat
Point at line, which is nearest to of reference point.
coeff
Type: SystemSingle
Normalized distance from p1 to linePoint.

Return Value

Type: Single
Distance from line to point.
See Also