47 #ifdef CHECK_MEMORY_LEAKS 49 #endif // CHECK_MEMORY_LEAKS 59 angle2 = (360 - angle2) * -1;
61 while (angle2 < -180) {
62 angle2 = 360 + angle2;
81 std::stringstream strm1(
id);
84 std::stringstream strm2;
98 std::ifstream strm(file.c_str());
100 throw ProcessError(
"Could not load names of edges too keep from '" + file +
"'.");
102 while (strm.good()) {
108 into.insert(name.substr(5));
SUMOReal distanceTo(const Position &p2) const
returns the euclidean distance in 3 dimension
static SUMOReal normRelAngle(SUMOReal angle1, SUMOReal 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)
static bool startsWith(const std::string &str, const std::string prefix)
Checks whether a given string starts with the prefix.
const Position & getPosition() const
Returns the position of this node.
Represents a single node (junction) during network building.
static SUMOReal relAngle(SUMOReal angle1, SUMOReal angle2)
static SUMOReal distance(NBNode *node1, NBNode *node2)