diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2024-08-13 17:14:17 +0200 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2024-08-13 17:14:17 +0200 |
| commit | f32a00178f0d3b2152a6fc1dc492c987aaede85f (patch) | |
| tree | fbc52e3475de069ed8b63513f98105bbc0728d6c /content/geometry/convexHull.cpp | |
| parent | 6fd4266de544582c0609a2fa204e0e49cd390c6e (diff) | |
small improvements
Diffstat (limited to 'content/geometry/convexHull.cpp')
| -rw-r--r-- | content/geometry/convexHull.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/geometry/convexHull.cpp b/content/geometry/convexHull.cpp index 6d89e05..1173924 100644 --- a/content/geometry/convexHull.cpp +++ b/content/geometry/convexHull.cpp @@ -11,8 +11,8 @@ vector<pt> convexHull(vector<pt> pts){ while (k > t && cross(h[k-2], h[k-1], *it) <= 0) k--; h[k++] = *it; }}; - half(all(pts), 1);// Untere Hülle. - half(next(pts.rbegin()), pts.rend(), k);// Obere Hülle. + half(all(pts), 1); // Untere Hülle. + half(next(pts.rbegin()), pts.rend(), k); // Obere Hülle. h.resize(k); return h; } |
