MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / checkIfIndexInRange

Function checkIfIndexInRange

grid_map_core/src/GridMapMath.cpp:191–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191bool checkIfIndexInRange(const Index& index, const Size& bufferSize)
192{
193 if (index[0] >= 0 && index[1] >= 0 && index[0] < bufferSize[0] && index[1] < bufferSize[1])
194 {
195 return true;
196 }
197 return false;
198}
199
200void boundIndexToRange(Index& index, const Size& bufferSize)
201{

Callers 8

TESTFunction · 0.85
getPositionFromIndexFunction · 0.85
getIndexFromPositionFunction · 0.85
incrementIndexFunction · 0.85
incrementIndexForSubmapFunction · 0.85
dataInsideMapMethod · 0.85
SpiralIteratorMethod · 0.85
generateRingMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68