[Boost-bugs] [Boost C++ Libraries] #4868: Boost::Polygon Polygon Concept contains function

Subject: [Boost-bugs] [Boost C++ Libraries] #4868: Boost::Polygon Polygon Concept contains function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-19 03:57:42


#4868: Boost::Polygon Polygon Concept contains function
-------------------------------------------------+--------------------------
 Reporter: altanbileg <altanbileg@…> | Owner: ljsimons
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: polygon
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: Polygon |
-------------------------------------------------+--------------------------
 bool Boost::Polygon::contains(const T&, const point_type& point, bool
 consider_touch=true) functions doesn't give right answer when type is
 Polygon.
 Example:
 Point pts[] = {gtl::construct<Point>(1565, 5735),
   gtl::construct<Point>(915, 5735),
   gtl::construct<Point>(915, 7085),
   gtl::construct<Point>(1565, 7085) };
 Polygon poly;
 gtl::set_points(poly, pts, pts+4);
 bool ret=gtl::contains(poly,gtl::construct<Point>(920, 7080));

 The result must be true. But it is false.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4868>
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:04 UTC