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

Function CalculateRadius

libs/drape_frontend/visual_params.cpp:333–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333float CalculateRadius(ScreenBase const & screen, ArrayView<float> const & zoom2radius)
334{
335 double zoom = 0.0;
336 int index = 0;
337 float lerpCoef = 0.0f;
338 ExtractZoomFactors(screen, zoom, index, lerpCoef);
339 float const radius = InterpolateByZoomLevels(index, lerpCoef, zoom2radius);
340 return radius * static_cast<float>(VisualParams::Instance().GetVisualScale());
341}
342
343} // namespace df

Callers 2

RenderTrackMethod · 0.85
UpdatePreviewMethod · 0.85

Calls 3

ExtractZoomFactorsFunction · 0.85
InterpolateByZoomLevelsFunction · 0.85
GetVisualScaleMethod · 0.80

Tested by

no test coverage detected