diff options
Diffstat (limited to 'content/geometry/polygon.cpp')
| -rw-r--r-- | content/geometry/polygon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/geometry/polygon.cpp b/content/geometry/polygon.cpp index 1332a4a..11ae2f7 100644 --- a/content/geometry/polygon.cpp +++ b/content/geometry/polygon.cpp @@ -23,7 +23,7 @@ ll windingNumber(pt p, const vector<pt>& poly) { return res; } -// check if point is inside polygon (any polygon) +// check if p is inside poly (any polygon poly[0] == poly.back()) bool inside(pt p, const vector<pt>& poly) { bool in = false; for (int i = 0; i + 1 < sz(poly); i++) { |
