diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2025-04-21 13:33:59 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2025-04-21 13:33:59 +0200 |
| commit | a9d0fb392d56315139a0d2683217bc7a54bd7cce (patch) | |
| tree | 225476f9bed6dddb37f5d09de262e8e21ed3b195 /content/geometry | |
| parent | d91ac762cdb3e4c30cdeaf7a078ae5a8d32ed489 (diff) | |
merge
Diffstat (limited to 'content/geometry')
| -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++) { |
