50 static double relAngle(
double angle1,
double angle2);
53 static double normRelAngle(
double angle1,
double angle2);
62 static void loadEdgesFromFile(
const std::string& file, std::set<std::string>& into);
65 static void loadPrefixedIDsFomFile(
const std::string& file,
const std::string prefix, std::set<std::string>& into);
72 static void interpretLaneID(
const std::string& lane_id, std::string& edge_id,
int& index);
static double relAngle(double angle1, double angle2)
computes the relative angle between the two angles
static void loadPrefixedIDsFomFile(const std::string &file, const std::string prefix, std::set< std::string > &into)
Add prefixed ids defined in file.
static double normRelAngle(double angle1, double angle2)
ensure that reverse relAngles (>=179.999) always count as turnarounds (-180)
static void loadEdgesFromFile(const std::string &file, std::set< std::string > &into)
Add edge ids defined in file (either ID or edge:ID per line) into the given set.
static std::string normalIDRepresentation(const std::string &id)
converts the numerical id to its "normal" string representation
A point in 2D or 3D with translation and scaling methods.
static double distance(NBNode *node1, NBNode *node2)
returns the distance between both nodes
static void interpretLaneID(const std::string &lane_id, std::string &edge_id, int &index)
parses edge-id and index from lane-id
Represents a single node (junction) during network building.