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:
authorvng <viktor.govako@gmail.com>2012-09-21 03:22:22 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:43:36 +0300
commit94fa7d216cffdffe1fbfd58923fe2e6f13523b3a (patch)
treeeb3403e6f804e6c439bac3f52886bceb75f57241 /indexer
parent52ef202674fc32f1ab0a38a33c437a1e14d6145a (diff)
Add MercatorBounds::FullRect().
Diffstat (limited to 'indexer')
-rw-r--r--indexer/mercator.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/mercator.hpp b/indexer/mercator.hpp
index b976fb2509..261931c141 100644
--- a/indexer/mercator.hpp
+++ b/indexer/mercator.hpp
@@ -12,6 +12,8 @@ struct MercatorBounds
static double minY;
static double maxY;
+ inline static m2::RectD FullRect() { return m2::RectD(minX, minY, maxX, maxY); }
+
inline static bool ValidLon(double d)
{
return my::between_s(-180.0, 180.0, d);