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

Function getVectorToOrigin

grid_map_core/src/GridMapMath.cpp:30–34  ·  view source on GitHub ↗

! * Gets the vector from the center of the map to the origin * of the map data structure. * @param[out] vectorToOrigin the vector from the center of the map the origin of the map data structure. * @param[in] mapLength the lengths in x and y direction. * @return true if successful. */

Source from the content-addressed store, hash-verified

28 * @return true if successful.
29 */
30inline bool getVectorToOrigin(Vector& vectorToOrigin, const Length& mapLength)
31{
32 vectorToOrigin = (0.5 * mapLength).matrix();
33 return true;
34}
35
36/*!
37 * Gets the vector from the center of the map to the center

Callers 6

getVectorToFirstCellFunction · 0.85
getIndexFromPositionFunction · 0.85
checkIfPositionWithinMapFunction · 0.85
boundPositionToRangeFunction · 0.85
getSubmapInformationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected