diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2023-02-13 19:39:30 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2023-02-13 19:39:30 +0100 |
| commit | 3a98de95336d3deb5d78cafdde6cc63dc3fd5f4f (patch) | |
| tree | 30f0428accc66062a07026a2bfa15fb88647523d /geometry/linesAndSegments.cpp | |
| parent | 54946c9945857e42b8eb4025a66d3344bd53f07c (diff) | |
squezed in new code :D
Diffstat (limited to 'geometry/linesAndSegments.cpp')
| -rw-r--r-- | geometry/linesAndSegments.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/geometry/linesAndSegments.cpp b/geometry/linesAndSegments.cpp index a9ba9ab..d298fde 100644 --- a/geometry/linesAndSegments.cpp +++ b/geometry/linesAndSegments.cpp @@ -82,9 +82,8 @@ double distBetweenSegments(pt a, pt b, pt c, pt d) { distToSegment(c, d, a), distToSegment(c, d, b)}); } -// sortiert alle Punkte pts auf einer Linie -// entsprechend der richtung dir 2d und 3d -void sortLine(pt dir, vector<pt>& pts) { +// sortiert alle Punkte pts auf einer Linie entsprechend dir +void sortLine(pt dir, vector<pt>& pts) { // (2d und 3d) sort(all(pts), [&](pt a, pt b){ return dot(dir, a) < dot(dir, b); }); |
