MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / GetBearing

Method GetBearing

include/engine/phantom_node.hpp:148–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 return reverse_segment_id.enabled && is_valid_reverse_target;
147 }
148 short GetBearing(const bool traversed_in_reverse) const
149 {
150 if (traversed_in_reverse)
151 return std::round(util::bearing::reverse(bearing));
152 return std::round(bearing);
153 }
154
155 bool operator==(const PhantomNode &other) const { return location == other.location; }
156

Callers 2

getDepartBearingsFunction · 0.80
getArriveBearingsFunction · 0.80

Calls 1

reverseFunction · 0.85

Tested by

no test coverage detected