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

Function CalculateAutoZoom

libs/drape_frontend/my_position_controller.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138double CalculateAutoZoom(double speedMpS, double distanceToTurn, bool isPerspectiveAllowed)
139{
140 double const zoomByDistance = CalculateZoomByDistanceToTurn(distanceToTurn, isPerspectiveAllowed);
141 double const zoomByMaxSpeed = CalculateZoomByMaxSpeed(speedMpS, isPerspectiveAllowed);
142
143 return std::min(zoomByDistance, zoomByMaxSpeed);
144}
145
146void ResetNotification(uint64_t & notifyId)
147{

Callers 1

OnLocationUpdateMethod · 0.85

Calls 2

CalculateZoomByMaxSpeedFunction · 0.85

Tested by

no test coverage detected