MCPcopy Create free account
hub / github.com/comaps/comaps / IntermediateDirectionPedestrian

Function IntermediateDirectionPedestrian

libs/routing/turns_generator_utils.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97PedestrianDirection IntermediateDirectionPedestrian(double const angle)
98{
99 static std::vector<std::pair<double, PedestrianDirection>> const kLowerBounds = {
100 {10.0, PedestrianDirection::TurnRight},
101 {-10.0, PedestrianDirection::GoStraight},
102 {-180.0, PedestrianDirection::TurnLeft}};
103
104 return FindDirectionByAngle(kLowerBounds, angle);
105}
106
107double CalcEstimatedTimeToPass(double const distanceMeters, HighwayClass const highwayClass)
108{

Callers 1

GetTurnDirectionMethod · 0.85

Calls 1

FindDirectionByAngleFunction · 0.85

Tested by

no test coverage detected