/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
geometry/geometry_tests/latlon_test.cpp
13 строк
440 B
Mikhail Gorbushin
[geometry] Get rid of MercatorBounds, refactor to namespace mercator
01 ноя 2019, 11:09
01 ноя 2019, 11:09
6f5d401
Код
Авторство
О чём код?
#include "testing/testing.hpp" #include "geometry/latlon.hpp" #include "geometry/point2d.hpp" #include "geometry/mercator.hpp" UNIT_TEST(LatLonPointConstructorTest) { m2::PointD basePoint(39.123, 42.456); ms::LatLon wgsPoint = mercator::ToLatLon(basePoint); m2::PointD resultPoint = mercator::FromLatLon(wgsPoint); TEST_ALMOST_EQUAL_ULPS(basePoint.x, resultPoint.x, ()); TEST_ALMOST_EQUAL_ULPS(basePoint.y, resultPoint.y, ()); }