Function grid_map::boundIndexToRange(Index&, const Size&)

Function Documentation

void grid_map::boundIndexToRange(Index &index, const Size &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. This is the 2d version of boundIndexToRange(int&, const int&).

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

  • bufferSize[in] the size of the buffer.