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

Method isInside

grid_map_core/src/iterators/EllipseIterator.cpp:84–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84bool EllipseIterator::isInside() const
85{
86 Position position;
87 getPositionFromIndex(position, *(*internalIterator_), mapLength_, mapPosition_, resolution_, bufferSize_, bufferStartIndex_);
88 double value = ((transformMatrix_ * (position - center_)).array().square() / semiAxisSquare_).sum();
89 return (value <= 1);
90}
91
92void EllipseIterator::findSubmapParameters(const Position& center, const Length& length, const double rotation,
93 Index& startIndex, Size& bufferSize) const

Callers

nothing calls this directly

Calls 1

getPositionFromIndexFunction · 0.85

Tested by

no test coverage detected