diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-06-12 19:48:45 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:19:37 +0300 |
commit | 9e73efd60264e878375ae08b8767307d17544d27 (patch) | |
tree | f763ff6e5c2859643f922c7082acff3e567329da /geometry/point2d.hpp | |
parent | a081d2e5c2d5a24c4e8822f3cdd06e2ac09cfbca (diff) |
introduced separate information layer class, which will perform all POI and Text layout.
Diffstat (limited to 'geometry/point2d.hpp')
-rw-r--r-- | geometry/point2d.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/geometry/point2d.hpp b/geometry/point2d.hpp index 503b52bd55..0d5fe6e3f2 100644 --- a/geometry/point2d.hpp +++ b/geometry/point2d.hpp @@ -192,6 +192,15 @@ namespace m2 } template <typename T> + Point<T> const Floor(Point<T> const & pt) + { + Point<T> res; + res.x = floor(pt.x); + res.y = floor(pt.y); + return res; + } + + template <typename T> bool IsPointStrictlyInsideTriangle(Point<T> const & p, Point<T> const & a, Point<T> const & b, Point<T> const & c) { |