diff options
author | Kirill Zhdanovich <kzhdanovich@gmail.com> | 2013-09-06 14:13:31 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:04:14 +0300 |
commit | d3bee7c08af11c3045a7430156b67a06e4bd9816 (patch) | |
tree | ff839b06ea6bbc514e452c820fd69d1a9aa35c02 /map/track.hpp | |
parent | a25a68c5f92459c8247517ede61cfb56e554edd8 (diff) |
[track] shortest distance to point with tests
Diffstat (limited to 'map/track.hpp')
-rw-r--r-- | map/track.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/map/track.hpp b/map/track.hpp index 73f7ea4b06..dba27e524b 100644 --- a/map/track.hpp +++ b/map/track.hpp @@ -1,6 +1,7 @@ #pragma once #include "../geometry/polyline2d.hpp" +#include "../geometry/point2d.hpp" #include "../graphics/color.hpp" #include "../graphics/display_list.hpp" #include "../graphics/screen.hpp" @@ -50,6 +51,8 @@ public: double GetLength() const { return m_polyline.GetLength(); } PolylineD const & GetPolyline() const { return m_polyline; } + + double GetShortestSquareDistance(m2::PointD const & point); //@} private: |