38 else if (r >=
grid[
n - 1])
47 int i = (hi + lo) >> 1;
64 void Init(std::vector<double>& points)
66 grid.resize(points.size());
std::vector< double > & Points()
void Init(std::vector< double > &points)
std::vector< double > grid
SimpleGrid()
Useless constructor.
int ReverseMap(double r)
Returns the index of the nearest point below r.