Function grid_map::wrapIndexToRange(int&, int)

Function Documentation

void grid_map::wrapIndexToRange(int &index, int bufferSize)

Wraps an index that runs out of the range of the buffer back into allowed the region. This means that an index that overflows is reset to zero.

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

  • bufferSize[in] the size of the buffer.