Re: [Boost-bugs] [Boost C++ Libraries] #10201: Use equals_with_epsilon for boost::geometry::equals algorithms

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10201: Use equals_with_epsilon for boost::geometry::equals algorithms
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-24 01:10:37


#10201: Use equals_with_epsilon for boost::geometry::equals algorithms
-------------------------------+---------------------------
  Reporter: smspillaz@… | Owner: barendgehrels
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: geometry
   Version: Boost 1.54.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+---------------------------
Changes (by awulkiew):

 * status: new => closed
 * resolution: => wontfix

Comment:

 Thanks!

 However everything should be ok here. `math::equals()` uses scaled machine
 epsilon to compare floating point numbers. By default
 `math::equals_with_epsilon()` uses `math::equals()`.

 AFAIK `equals_with_epsilon()` was used in the past as a workaround in some
 cases (e.g. it allowed to define comparison differently for user-defined
 coordinate types) but now after robustness upgrades it's no longer needed.

 Do you have any problems with disjoint() because of this?
 Or did you catch this while reading the code?

 Anyway, I'm closing the report.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10201#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC