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:
authorYuri Gorshenin <y@maps.me>2016-03-03 20:20:17 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:51:11 +0300
commit4d3cc8fc68a45ea70672c552e6408a7ab288b630 (patch)
treec07b85ff749c439f89a513aa22ba853389c79d7a /geometry
parentf1e26732f69c52f0b84da11d8251bda7f16b8ce0 (diff)
[search] Fixed viewports in the quality tool.
Diffstat (limited to 'geometry')
-rw-r--r--geometry/mercator.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/geometry/mercator.hpp b/geometry/mercator.hpp
index 4fa61ac21f..95b04c6f40 100644
--- a/geometry/mercator.hpp
+++ b/geometry/mercator.hpp
@@ -106,6 +106,11 @@ struct MercatorBounds
return FromLatLon(point.lat, point.lon);
}
+ inline static m2::RectD RectByCenterLatLonAndSizeInMeters(double lat, double lon, double size)
+ {
+ return RectByCenterXYAndSizeInMeters(FromLatLon(lat, lon), size);
+ }
+
inline static ms::LatLon ToLatLon(m2::PointD const & point)
{
return {YToLat(point.y), XToLon(point.x)};