Boost C++ Libraries: Ticket #13421: boost::polygon::euclidean_distance(segment, point) returns 0 if the segment is of length 0 https://svn.boost.org/trac10/ticket/13421 <p> 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. </p> <p> In such a case param is also 0 which is why we end up there. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13421 Trac 1.4.3