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

Method isInside

grid_map_core/src/iterators/CircleIterator.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool CircleIterator::isInside() const
75{
76 Position position;
77 getPositionFromIndex(position, *(*internalIterator_), mapLength_, mapPosition_, resolution_, bufferSize_, bufferStartIndex_);
78 double squareNorm = (position - center_).array().square().sum();
79 return (squareNorm <= radiusSquare_);
80}
81
82void CircleIterator::findSubmapParameters(const Position& center, const double radius,
83 Index& startIndex, Size& bufferSize) const

Callers

nothing calls this directly

Calls 1

getPositionFromIndexFunction · 0.85

Tested by

no test coverage detected