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

Function GetScaleLevelD

libs/indexer/scales.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21double GetScaleLevelD(double ratio)
22{
23 double const level = std::min(static_cast<double>(GetUpperScale()), std::log2(ratio) + INITIAL_LEVEL);
24 return level < 0.0 ? 0.0 : level;
25}
26
27double GetScaleLevelD(m2::RectD const & r)
28{

Callers 1

GetScaleLevelFunction · 0.85

Calls 4

GetUpperScaleFunction · 0.85
log2Function · 0.85
SizeXMethod · 0.80
SizeYMethod · 0.80

Tested by

no test coverage detected