|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66903 - branches/release/boost/polygon
From: lucanus.j.simonson_at_[hidden]
Date: 2010-11-30 12:53:59
Author: ljsimons
Date: 2010-11-30 12:53:58 EST (Tue, 30 Nov 2010)
New Revision: 66903
URL: http://svn.boost.org/trac/boost/changeset/66903
Log:
fixed trac 4868 polygon concept contains function
Text files modified:
branches/release/boost/polygon/polygon_traits.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: branches/release/boost/polygon/polygon_traits.hpp
==============================================================================
--- branches/release/boost/polygon/polygon_traits.hpp (original)
+++ branches/release/boost/polygon/polygon_traits.hpp 2010-11-30 12:53:58 EST (Tue, 30 Nov 2010)
@@ -1170,7 +1170,7 @@
//odd count implies boundary condition
if(counts[0] % 2 || counts[1] % 2) return consider_touch;
//an odd number of edges to the left implies interior pt
- return counts[0] % 4 != 0;
+ return counts[winding(polygon) == COUNTERCLOCKWISE ? 0 : 1] % 4 != 0;
}
//TODO: refactor to expose as user APIs
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk