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

Function getPositionOfDataStructureOrigin

grid_map_core/src/GridMapMath.cpp:159–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void getPositionOfDataStructureOrigin(const Position& position,
160 const Length& mapLength,
161 Position& positionOfOrigin)
162{
163 Vector vectorToOrigin;
164 getVectorToOrigin(vectorToOrigin, mapLength);
165 positionOfOrigin = position + vectorToOrigin;
166}
167
168bool getIndexShiftFromPositionShift(Index& indexShift,
169 const Vector& positionShift,

Callers

nothing calls this directly

Calls 1

getVectorToOriginFunction · 0.85

Tested by

no test coverage detected