42 int32_t
getIndexByAngle(int32_t angle,
const type_angle2id& angle2id, int32_t& closestMatchingAngle);
int32_t getAngleBetween(const Location &loc1, const Location &loc2)
Gets angle of vector defined by given locations.
int32_t getIndexByAngle(int32_t angle, const type_angle2id &angle2id, int32_t &closestMatchingAngle)
Returns id for given angle from angle2id map in case there are no elements in the map...
std::map< uint32_t, int32_t > type_angle2id
Location getFacing(const Location &loc, const int32_t angle)
Gets facing location defined by given angle and location.