ChartToolsSolvePointBetweenPoints Method (PointFloat, PointFloat, Single, PointFloat) |
LightningChart .NET Help
Solve point within a line going from Point1 to Point2.
Namespace:
Arction.Wpf.ChartingMVVM
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic static bool SolvePointBetweenPoints(
PointFloat point1,
PointFloat point2,
float distanceFromP1,
out PointFloat result
)
Public Shared Function SolvePointBetweenPoints (
point1 As PointFloat,
point2 As PointFloat,
distanceFromP1 As Single,
<OutAttribute> ByRef result As PointFloat
) As Boolean
public:
static bool SolvePointBetweenPoints(
PointFloat point1,
PointFloat point2,
float distanceFromP1,
[OutAttribute] PointFloat% result
)
Parameters
- point1
- Type: Arction.Wpf.ChartingMVVMPointFloat
First point. - point2
- Type: Arction.Wpf.ChartingMVVMPointFloat
Second point. - distanceFromP1
- Type: SystemSingle
Distance from Point1 towards Point2. - result
- Type: Arction.Wpf.ChartingMVVMPointFloat
Solved point.
Return Value
Type:
BooleanReturns true if successfully solved (length is not 0).
See Also