[Boost-bugs] [Boost C++ Libraries] #13421: boost::polygon::euclidean_distance(segment, point) returns 0 if the segment is of length 0

Subject: [Boost-bugs] [Boost C++ Libraries] #13421: boost::polygon::euclidean_distance(segment, point) returns 0 if the segment is of length 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-25 05:31:36


#13421: boost::polygon::euclidean_distance(segment, point) returns 0 if the segment
is of length 0
------------------------------+------------------------------
 Reporter: daniel@… | Owner: Lucanus Simonson
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
  Version: Boost 1.65.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------------
 On line 658 of segment_concept.hpp it returns 0 if the length of the
 segment (squared) is 0. It should just return the distance to one of the
 endpoints instead.

 In such a case param is also 0 which is why we end up there.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13421>
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 : 2018-01-25 05:36:55 UTC