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

Function IsGoodForLevel

libs/indexer/scales.cpp:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79bool IsGoodForLevel(int level, m2::RectD const & r)
80{
81 ASSERT(level >= 0 && level <= GetUpperScale(), (level));
82 // assume that feature is always visible in upper scale
83 return (level == GetUpperScale() || std::max(r.SizeX(), r.SizeY()) > GetEpsilonForLevel(level));
84}
85
86bool IsGoodOutlineForLevel(int level, Points const & poly)
87{

Callers 3

operator()Method · 0.85
IsGoodOutlineForLevelFunction · 0.85

Calls 5

ASSERTFunction · 0.85
GetUpperScaleFunction · 0.85
GetEpsilonForLevelFunction · 0.85
SizeXMethod · 0.80
SizeYMethod · 0.80

Tested by

no test coverage detected