diff options
author | Mikhail Gorbushin <m.gorbushin@corp.mail.ru> | 2018-11-27 17:55:30 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2018-11-30 20:04:40 +0300 |
commit | 9634c310b13f4f743dc41356ece0dc46b8aabe88 (patch) | |
tree | fe8bdb696337fdf5478c7a5d8471ee45ba212b48 /geometry | |
parent | 894a39e5479b367b6ef37838d5cb21d74551e2a5 (diff) |
[routing] Speed Cameras review fixes
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/point2d.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/geometry/point2d.hpp b/geometry/point2d.hpp index 9d0fc638e1..778587a45e 100644 --- a/geometry/point2d.hpp +++ b/geometry/point2d.hpp @@ -8,6 +8,7 @@ #include <array> #include <cmath> #include <functional> +#include <limits> #include <sstream> #include <typeinfo> @@ -31,6 +32,7 @@ public: } static Point<T> Zero() { return Point<T>(0, 0); } + static Point<T> Max() { return Point<T>(std::numeric_limits<T>::max(), std::numeric_limits<T>::max());} bool EqualDxDy(Point<T> const & p, T eps) const { |