| 85 | } |
| 86 | |
| 87 | CarDirection IntermediateDirection(double const angle) |
| 88 | { |
| 89 | static std::vector<std::pair<double, CarDirection>> const kLowerBounds = { |
| 90 | {145., CarDirection::TurnSharpRight}, {50., CarDirection::TurnRight}, {10., CarDirection::TurnSlightRight}, |
| 91 | {-10., CarDirection::GoStraight}, {-50., CarDirection::TurnSlightLeft}, {-145., CarDirection::TurnLeft}, |
| 92 | {-180., CarDirection::TurnSharpLeft}}; |
| 93 | |
| 94 | return FindDirectionByAngle(kLowerBounds, angle); |
| 95 | } |
| 96 | |
| 97 | PedestrianDirection IntermediateDirectionPedestrian(double const angle) |
| 98 | { |