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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-12-02 15:31:22 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-12-02 16:51:44 +0300
commit121bdc3720b7eccff21b3b8fff6fe0a333d50ca3 (patch)
treee609bd4f10ae290bef0b9eda4f4601e6ed5a4e78 /geometry
parentb11b1e23e2317dd7c0abd40b33f5f13750214706 (diff)
Tuned two-way roads offsets
Diffstat (limited to 'geometry')
-rw-r--r--geometry/polyline2d.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/geometry/polyline2d.hpp b/geometry/polyline2d.hpp
index abe2459ebe..9e96516bd5 100644
--- a/geometry/polyline2d.hpp
+++ b/geometry/polyline2d.hpp
@@ -115,13 +115,13 @@ public:
return m_points.back();
}
- Polyline ExtractSegment(size_t segmentIndex, bool reversed) const
+ vector<Point<T>> ExtractSegment(size_t segmentIndex, bool reversed) const
{
if (segmentIndex + 1 >= m_points.size())
- return Polyline();
+ return vector<Point<T>>();
- return reversed ? Polyline(vector<Point<T>>{m_points[segmentIndex + 1], m_points[segmentIndex]}) :
- Polyline(vector<Point<T>>{m_points[segmentIndex], m_points[segmentIndex + 1]});
+ return reversed ? vector<Point<T>>{m_points[segmentIndex + 1], m_points[segmentIndex]} :
+ vector<Point<T>>{m_points[segmentIndex], m_points[segmentIndex + 1]};
}
vector<Point<T> > const & GetPoints() const { return m_points; }