ScottPlot
|
This interface is used by plottables that can locate a within a specified range of a coordinate on the plot. More...
Public Member Functions | |
DataPoint | GetNearest (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance) |
Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away. | |
DataPoint | GetNearestX (Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance) |
Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away. | |
This interface is used by plottables that can locate a within a specified range of a coordinate on the plot.
DataPoint ScottPlot.IGetNearest.GetNearest | ( | Coordinates | mouseLocation, |
RenderDetails | renderInfo, | ||
float | maxDistance | ||
) |
Return the point nearest a specific location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
Implemented in ScottPlot.DataSources.SignalXYSourceDoubleArray, and ScottPlot.DataSources.SignalXYSourceGenericArray< TX, TY >.
DataPoint ScottPlot.IGetNearest.GetNearestX | ( | Coordinates | mouseLocation, |
RenderDetails | renderInfo, | ||
float | maxDistance | ||
) |
Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render. Will return DataPoint.None if the nearest point is greater than maxDistance pixels away.
Implemented in ScottPlot.DataSources.SignalXYSourceDoubleArray, and ScottPlot.DataSources.SignalXYSourceGenericArray< TX, TY >.