Find the index of the given position among the given points.
The set of points to search, must contain at least two values.
The position for which to search among the given points.
The index of the point right *before* the given position, or -1 if not found.
See Implementation
Find the index of the given position among the given points.