diff options
author | Olga Khlopkova <o.khlopkova@corp.mail.ru> | 2020-11-26 12:20:57 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2020-12-01 10:07:36 +0300 |
commit | d7385f45206ccd26b03ad1e718844f4a5ddadbcf (patch) | |
tree | 7c23fa30f7000e452d10045152cddd39d682d8be /routing | |
parent | 843d93527624730d0e82fcfbadda9146454cb0cc (diff) |
[routing] CalcProjectionToSegment declaration added to hpp.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/fake_ending.cpp | 5 | ||||
-rw-r--r-- | routing/fake_ending.hpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/routing/fake_ending.cpp b/routing/fake_ending.cpp index de96339a70..8fc2c86629 100644 --- a/routing/fake_ending.cpp +++ b/routing/fake_ending.cpp @@ -15,7 +15,7 @@ using namespace routing; using namespace std; -namespace +namespace routing { LatLonWithAltitude CalcProjectionToSegment(LatLonWithAltitude const & begin, LatLonWithAltitude const & end, @@ -40,10 +40,7 @@ LatLonWithAltitude CalcProjectionToSegment(LatLonWithAltitude const & begin, distBeginToProjection / distBeginToEnd; return LatLonWithAltitude(projectedLatLon, altitude); } -} // namespace -namespace routing -{ bool Projection::operator==(const Projection & other) const { return tie(m_segment, m_isOneWay, m_segmentFront, m_segmentBack, m_junction) == diff --git a/routing/fake_ending.hpp b/routing/fake_ending.hpp index ec6f4a6ba4..ff76fee498 100644 --- a/routing/fake_ending.hpp +++ b/routing/fake_ending.hpp @@ -46,4 +46,8 @@ struct FakeEnding final FakeEnding MakeFakeEnding(std::vector<Segment> const & segments, m2::PointD const & point, WorldGraph & graph); FakeEnding MakeFakeEnding(Segment const & segment, m2::PointD const & point, IndexGraph & graph); + +LatLonWithAltitude CalcProjectionToSegment(LatLonWithAltitude const & begin, + LatLonWithAltitude const & end, + m2::PointD const & point); } // namespace routing |