You now find the upper index of the point corresponding to the current mouse position with a faster compare method and in O(log n) instead of O(n) - that's all.
If you like to run some local algo over maybe n points below and above the index, why not ?
F.e the curvetracker example interpolates between the adjacent points to guess a y coordinate for positions, where no sample exists.
Uwe





Reply With Quote
Bookmarks