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

Method isInside

grid_map_core/src/iterators/SpiralIterator.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool SpiralIterator::isInside(const Index index) const
77{
78 Eigen::Vector2d position;
79 getPositionFromIndex(position, index, mapLength_, mapPosition_, resolution_, bufferSize_);
80 double squareNorm = (position - center_).array().square().sum();
81 return (squareNorm <= radiusSquare_);
82}
83
84void SpiralIterator::generateRing()
85{

Callers

nothing calls this directly

Calls 1

getPositionFromIndexFunction · 0.85

Tested by

no test coverage detected