SeriesBaseSmithSolverNearestDataPointByCoord Method |
LightningChart .NET Help
Tries to find the closest point of the series to the given coordinates.
Namespace:
Arction.WinForms.Charting.SeriesSmith
Assembly:
Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SolverNearestDataPointByCoord(
double xCoordinate,
double yCoordinate,
out double nearestRealComponent,
out double nearestImaginaryComponent
)
Public Function SolverNearestDataPointByCoord (
xCoordinate As Double,
yCoordinate As Double,
<OutAttribute> ByRef nearestRealComponent As Double,
<OutAttribute> ByRef nearestImaginaryComponent As Double
) As Boolean
public:
bool SolverNearestDataPointByCoord(
double xCoordinate,
double yCoordinate,
[OutAttribute] double% nearestRealComponent,
[OutAttribute] double% nearestImaginaryComponent
)
Parameters
- xCoordinate
- Type: SystemDouble
X screen coordinate to find the nearest series point from. - yCoordinate
- Type: SystemDouble
X screen coordinate to find the nearest series point from. - nearestRealComponent
- Type: SystemDouble
Angle value of the found point. - nearestImaginaryComponent
- Type: SystemDouble
Amplitude value of the found point.
Return Value
Type:
BooleanTrue if nearest point was found, false otherwise.
See Also