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 | |
| parent | 6fd4266de544582c0609a2fa204e0e49cd390c6e (diff) | |
small improvements
Diffstat (limited to 'content/geometry')
| -rw-r--r-- | content/geometry/convexHull.cpp | 4 | ||||
| -rw-r--r-- | content/geometry/hpi.cpp | 2 |
2 files changed, 3 insertions, 3 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; } diff --git a/content/geometry/hpi.cpp b/content/geometry/hpi.cpp index bd3ab1e..c58a6e7 100644 --- a/content/geometry/hpi.cpp +++ b/content/geometry/hpi.cpp @@ -1,4 +1,4 @@ -constexpr ll INF = 0x1FFF'FFFF'FFFF'FFFF;//THIS CODE IS WIP +constexpr ll INF = 0x1FFF'FFFF'FFFF'FFFF; //THIS CODE IS WIP bool left(pt p) {return real(p) < 0 || (real(p) == 0 && imag(p) < 0);} |
