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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-07-03 17:00:24 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:54:20 +0300
commit1fa6d796e4d7e1426f588103b1be22a09fd4a8d1 (patch)
tree7a5066bcb661875a5500987fc736b42333da604f /geometry/geometry_tests/latlon_test.cpp
parent005724e44e35b7619ab513049ad4b97adc1de0da (diff)
PR fixes
Diffstat (limited to 'geometry/geometry_tests/latlon_test.cpp')
-rw-r--r--geometry/geometry_tests/latlon_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/geometry/geometry_tests/latlon_test.cpp b/geometry/geometry_tests/latlon_test.cpp
index 2bb306f0cc..e57cbbbd32 100644
--- a/geometry/geometry_tests/latlon_test.cpp
+++ b/geometry/geometry_tests/latlon_test.cpp
@@ -6,9 +6,8 @@
UNIT_TEST(LatLonPointConstructorTest)
{
m2::PointD basePoint(39.123, 42.456);
- ms::LatLon wgsPoint(basePoint);
- m2::PointD resultPoint(MercatorBounds::LonToX(wgsPoint.lon),
- MercatorBounds::LatToY(wgsPoint.lat));
+ ms::LatLon wgsPoint = MercatorBounds::ToLatLon(basePoint);
+ m2::PointD resultPoint = MercatorBounds::FromLatLon(wgsPoint);
TEST_ALMOST_EQUAL_ULPS(basePoint.x, resultPoint.x, ());
TEST_ALMOST_EQUAL_ULPS(basePoint.y, resultPoint.y, ());
}