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

Function CheckMinScale

libs/drape_frontend/screen_operations.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool CheckMinScale(ScreenBase const & screen)
51{
52 m2::RectD const & r = screen.ClipRect();
53 m2::RectD const & worldR = df::GetWorldRect();
54
55 return (r.SizeX() <= worldR.SizeX() || r.SizeY() <= worldR.SizeY());
56}
57
58bool CheckMaxScale(ScreenBase const & screen)
59{

Callers 2

ApplyScaleFunction · 0.85
ScaleImplMethod · 0.85

Calls 3

GetWorldRectFunction · 0.85
SizeXMethod · 0.80
SizeYMethod · 0.80

Tested by

no test coverage detected