Interface IGetNearest
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
public interface IGetNearest
- Extension Methods
Methods
GetNearest(Coordinates, RenderDetails, float)
Return the point nearest a specific location given the X/Y pixel scaling information from a previous render.
Will return None if the nearest point is greater than maxDistance pixels away.
DataPoint GetNearest(Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance)
Parameters
mouseLocationCoordinatesrenderInfoRenderDetailsmaxDistancefloat
Returns
GetNearestX(Coordinates, RenderDetails, float)
Return the point nearest a specific X location given the X/Y pixel scaling information from a previous render.
Will return None if the nearest point is greater than maxDistance pixels away.
DataPoint GetNearestX(Coordinates mouseLocation, RenderDetails renderInfo, float maxDistance)
Parameters
mouseLocationCoordinatesrenderInfoRenderDetailsmaxDistancefloat