Function grid_map::boundIndexToRange(int&, const int&)

Function Documentation

void grid_map::boundIndexToRange(int &index, const int &bufferSize)

Bounds an index that runs out of the range of the buffer. This means that an index that overflows is stopped at the last valid index.

Parameters:
  • [in/out] – index the index that will be bounded to the valid region of the buffer.

  • bufferSize[in] the size of the buffer.