SurfaceSeries3DBaseSolveNearestDataPointByCoord Method |
LightningChart .NET Help
Solve nearest data point to given screen coordinate [input in DIP]. Takes the data point distance from camera into account.
Only solves the point when coordinate is over the surface.
Namespace:
Arction.Wpf.ChartingMVVM.Series3D
Assembly:
Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntaxpublic bool SolveNearestDataPointByCoord(
int xCoordinate,
int yCoordinate,
out SurfacePoint nearestPoint,
out int columnIndex,
out int rowIndex
)
Public Function SolveNearestDataPointByCoord (
xCoordinate As Integer,
yCoordinate As Integer,
<OutAttribute> ByRef nearestPoint As SurfacePoint,
<OutAttribute> ByRef columnIndex As Integer,
<OutAttribute> ByRef rowIndex As Integer
) As Boolean
public:
bool SolveNearestDataPointByCoord(
int xCoordinate,
int yCoordinate,
[OutAttribute] SurfacePoint% nearestPoint,
[OutAttribute] int% columnIndex,
[OutAttribute] int% rowIndex
)
Parameters
- xCoordinate
- Type: SystemInt32
X screen coordinate as DIP - yCoordinate
- Type: SystemInt32
Y screen coordinate as DIP - nearestPoint
- Type: Arction.Wpf.ChartingMVVMSurfacePoint
Nearest point solved - columnIndex
- Type: SystemInt32
Column index in Data array - rowIndex
- Type: SystemInt32
Row index in Data array
Return Value
Type:
BooleanTrue if solved, else false.
See Also