/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
android-release-9.1.7
openlr/openlr_model.cpp
27 строк
685 B
Sergey Magidovich
[OpenLR] Assemble all things together. Cache edges within one run.
07 фев 2018, 13:48
07 фев 2018, 13:48
774e693
Код
Авторство
О чём код?
#include "openlr/openlr_model.hpp" #include "geometry/mercator.hpp" using namespace std; namespace openlr { // LinearSegment ----------------------------------------------------------------------------------- vector<m2::PointD> LinearSegment::GetMercatorPoints() const { vector<m2::PointD> points; for (auto const & point : m_locationReference.m_points) points.push_back(MercatorBounds::FromLatLon(point.m_latLon)); return points; } vector<LocationReferencePoint> const & LinearSegment::GetLRPs() const { return m_locationReference.m_points; } vector<LocationReferencePoint> & LinearSegment::GetLRPs() { return m_locationReference.m_points; } } // namespace openlr