diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2010-12-11 22:01:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:08:25 +0300 |
commit | 03d958a99babcbd1e01fc1a712a556c70e088a84 (patch) | |
tree | 5dfc7637e7a9855b36dc8331df8f63585509f3ef /geometry/point2d.hpp | |
parent | 0663d053b7e89b091a284d6bfebd4d7471522267 (diff) |
CurrentPosition and ErrorRadius rendering.
Diffstat (limited to 'geometry/point2d.hpp')
-rw-r--r-- | geometry/point2d.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/geometry/point2d.hpp b/geometry/point2d.hpp index 14d4084a2e..5f3fb3a449 100644 --- a/geometry/point2d.hpp +++ b/geometry/point2d.hpp @@ -160,6 +160,14 @@ namespace m2 } template <typename T> + Point<T> const Rotate(Point<T> const & pt, T a) + { + Point<T> res(pt); + res.Rotate(a); + return res; + } + + template <typename T> bool IsPointStrictlyInsideTriangle(Point<T> const & p, Point<T> const & a, Point<T> const & b, Point<T> const & c) { |