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

Function ExtractZoomFactors

libs/drape_frontend/visual_params.cpp:301–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void ExtractZoomFactors(ScreenBase const & s, double & zoom, int & index, float & lerpCoef)
302{
303 double const zoomLevel = GetZoomLevel(s.GetScale());
304 zoom = trunc(zoomLevel);
305 index = static_cast<int>(zoom - 1.0);
306 lerpCoef = static_cast<float>(zoomLevel - zoom);
307}
308
309double GetNormalizedZoomLevel(double screenScale, int minZoom)
310{

Callers 7

CalculateRadiusFunction · 0.85
CalculateHalfWidthFunction · 0.85
RenderMethod · 0.85
CalculateHalfWidthFunction · 0.85
UpdateMethod · 0.85
UpdateMethod · 0.85
InterpolateByZoomFunction · 0.85

Calls 2

GetZoomLevelFunction · 0.70
GetScaleMethod · 0.45

Tested by

no test coverage detected