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