Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2011-06-06 06:20:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:19:15 +0300
commita4e947935d772f58de7b7b9d06134159a0b79b26 (patch)
tree935520f497c5a33ea4f6c29f258a269073735bce /indexer/scales.hpp
parent6eb1705e08c6b1c9affe86e5ec5117650469bf13 (diff)
For VNG: to finish methods implementation
Diffstat (limited to 'indexer/scales.hpp')
-rw-r--r--indexer/scales.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indexer/scales.hpp b/indexer/scales.hpp
index 269af92678..96c13e4d40 100644
--- a/indexer/scales.hpp
+++ b/indexer/scales.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "../geometry/rect2d.hpp"
+#include "../geometry/point2d.hpp"
namespace scales
{
@@ -9,7 +10,11 @@ namespace scales
double GetM2PFactor(int level);
int GetScaleLevel(double ratio);
+ /// @return such ration, that GetScaleLevel(ration) == level
+ double GetRationForLevel(int level);
int GetScaleLevel(m2::RectD const & r);
+ /// @return such rect, that GetScaleLevel(rect) == level
+ m2::RectD GetRectForLevel(int level, m2::PointD const & center, double widthToHeightRatio);
double GetEpsilonForLevel(int level);
double GetEpsilonForSimplify(int level);
bool IsGoodForLevel(int level, m2::RectD const & r);