34 #include "model/structures/location.h"
37 typedef std::map<unsigned int, int> type_angle2id;
42 int getIndexByAngle(
int angle,
const type_angle2id& angle2id,
int& closestMatchingAngle);
52 double dy = (c2.y - c1.y);
53 double dx = (c2.x - c1.x);
55 int angle =
static_cast<int>(Mathd::ATan2(-dy,dx)*(180.0/Mathd::pi()));