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:
authorrachytski <siarhei.rachytski@gmail.com>2011-06-12 19:48:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:19:37 +0300
commit9e73efd60264e878375ae08b8767307d17544d27 (patch)
treef763ff6e5c2859643f922c7082acff3e567329da /geometry/point2d.hpp
parenta081d2e5c2d5a24c4e8822f3cdd06e2ac09cfbca (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.hpp9
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)
{