FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
angles.h File Reference
#include <map>
#include "model/structures/location.h"
+ Include dependency graph for angles.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FIFE
 

Typedefs

typedef std::map< uint32_t, int32_t > FIFE::type_angle2id
 

Functions

int32_t FIFE::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, negative value is returned. More...
 
int32_t FIFE::getAngleBetween (const Location &loc1, const Location &loc2)
 Gets angle of vector defined by given locations. More...
 
Location FIFE::getFacing (const Location &loc, const int32_t angle)
 Gets facing location defined by given angle and location. More...
 
int32_t FIFE::getAngleBetween (const ExactModelCoordinate &emc1, const ExactModelCoordinate &emc2)
 Gets angle of vector defined by given map coordinates. More...
 
ExactModelCoordinate FIFE::getFacing (const ExactModelCoordinate &emc, const int32_t angle)
 Gets facing map coordinate defined by given angle and map coordinate. More...