blob: 6c064946b096e65e9439bc88bda178841b338b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "../geometry/rect2d.hpp"
#include "../geometry/point2d.hpp"
namespace scales
{
inline int GetUpperScale() { return 17; }
inline int GetUpperWorldScale() { return 9; }
double GetM2PFactor(int level);
double GetScaleLevelD(double ratio);
double GetScaleLevelD(m2::RectD const & r);
int GetScaleLevel(double ratio);
int GetScaleLevel(m2::RectD const & r);
/// @return such ration, that GetScaleLevel(ration) == level
double GetRationForLevel(double level);
/// @return such rect, that GetScaleLevel(rect) == level
m2::RectD GetRectForLevel(double level, m2::PointD const & center, double X2YRatio);
double GetEpsilonForLevel(int level);
double GetEpsilonForSimplify(int level);
bool IsGoodForLevel(int level, m2::RectD const & r);
}
|