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:
authorvng <viktor.govako@gmail.com>2016-01-21 19:11:11 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:14:23 +0300
commit3ba3f523d53f5def3f715c04417ca1098a03283c (patch)
tree852877db7bab6cd69f05ace97f7745fb6c030d6b /geometry
parent5d2b838aa1d98c62b530a074db35007f788cd350 (diff)
[search] Removed useless vector of points in ProjectionOnStreetCalculator.
Diffstat (limited to 'geometry')
-rw-r--r--geometry/distance.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/geometry/distance.hpp b/geometry/distance.hpp
index 5b53aa0313..ec520e037f 100644
--- a/geometry/distance.hpp
+++ b/geometry/distance.hpp
@@ -37,7 +37,9 @@ public:
}
}
- double GetLength() const { return m_D2; }
+ inline double GetLength() const { return m_D2; }
+ inline PointT const & P0() const { return m_P0; }
+ inline PointT const & P1() const { return m_P1; }
protected:
template <class VectorT> static double SquareLength(VectorT const & v)