From 9bf32672fd7c81bf1b040d40ba61ceb094a12663 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Thu, 10 Sep 2015 17:26:55 +0300 Subject: [PATCH] Use AlmostEqualAbs instead AlmostEqualULPs --- geometry/region2d.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geometry/region2d.hpp b/geometry/region2d.hpp index 11897587fa..a8900b1b46 100644 --- a/geometry/region2d.hpp +++ b/geometry/region2d.hpp @@ -18,12 +18,14 @@ namespace m2 template bool EqualPoints(PointT const & p1, PointT const & p2) const { - return m2::AlmostEqualULPs(p1, p2); +// return m2::AlmostEqualULPs(p1, p2); + return my::AlmostEqualAbs(p1.x, p2.x, 1e-7) && my::AlmostEqualAbs(p1.y, p2.y, 1e-7); } template bool EqualZero(CoordT val, CoordT exp) const { return my::AlmostEqualULPs(val + exp, exp); +// return my::AlmostEqualAbs(val + exp, exp, 1e-7); } };