diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-02-02 17:51:21 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:37:01 +0300 |
commit | 2b717dda1a24c094f30e35cd0e509f5955f23013 (patch) | |
tree | 28bf268f5412be9cc220e1beb6eeb04019ebae97 /geometry | |
parent | f0089c33920d57168202bc4772d7509e42e715e1 (diff) |
Merging arrows bodies of navigation route if they are close to each other.
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/point2d.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/geometry/point2d.hpp b/geometry/point2d.hpp index faad7cef79..b60514016a 100644 --- a/geometry/point2d.hpp +++ b/geometry/point2d.hpp @@ -320,8 +320,10 @@ namespace m2 return my::AlmostEqual(a.x, b.x, maxULPs) && my::AlmostEqual(a.y, b.y, maxULPs); } - /// Calculate three point of a triangle (p1, p2 and p3) which gives a arrow at the end of segment s, f - /// with respect to w - arrow's width and l - arrow's length + /// Calculate three points of a triangle (p1, p2 and p3) which give an arrow that + /// presents an equilateral triangle with the median + /// starting at point b and having direction b,e. + /// The height of the equilateral triangle is l and the base of the triangle is 2 * w template <typename T, typename TT, typename PointT = Point<T>> void GetArrowPoints(PointT const & b, PointT const & e, T w, T l, array<Point<TT>, 3> & arrPnts) { |