diff options
| author | Yidi <noob999noob999@gmail.com> | 2024-09-25 20:18:42 +0200 |
|---|---|---|
| committer | Yidi <noob999noob999@gmail.com> | 2024-09-25 20:18:42 +0200 |
| commit | 35d485bcf6a9ed0a9542628ce4aa94a3326d0884 (patch) | |
| tree | 679675215d2cf5416664887eaf28c50b8a279549 /content/geometry/polygon.cpp | |
| parent | bfca807fde317bb2573ab7f54297f1f3c6eae8f1 (diff) | |
fix function name
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 3178290..064d81f 100644 --- a/content/geometry/polygon.cpp +++ b/content/geometry/polygon.cpp @@ -29,7 +29,7 @@ bool inside(pt p, const vector<pt>& poly) { bool in = false; for (int i = 0; i + 1 < sz(poly); i++) { pt a = poly[i], b = poly[i + 1]; - if (pointOnLineSegment(a, b, p)) return false; + if (pointOnSegment(a, b, p)) return false; if (real(a) > real(b)) swap(a,b); if (real(a) <= real(p) && real(p) < real(b) && cross(p, a, b) < 0) { |
