diff options
| author | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:27 +0100 |
|---|---|---|
| committer | MZuenni <michi.zuendorf@gmail.com> | 2022-11-30 12:43:27 +0100 |
| commit | 03788f48be2634c36cd19ba25b0a851685b9c877 (patch) | |
| tree | ef430668558366afe95d958d26250361f5452666 /geometry/linesAndSegments.cpp | |
| parent | 99259d60cb345eae15211397f3199aa86ac2bceb (diff) | |
use all macro
Diffstat (limited to 'geometry/linesAndSegments.cpp')
| -rw-r--r-- | geometry/linesAndSegments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geometry/linesAndSegments.cpp b/geometry/linesAndSegments.cpp index 6c53cee..9ed39c4 100644 --- a/geometry/linesAndSegments.cpp +++ b/geometry/linesAndSegments.cpp @@ -84,7 +84,7 @@ double distBetweenSegments(pt a, pt b, pt c, pt d) { // sortiert alle Punkte pts auf einer Linie // entsprechend der richtung dir 2d und 3d void sortLine(pt dir, vector<pt>& pts) { - sort(pts.begin(), pts.end(), [&](pt a, pt b){ + sort(all(pts), [&](pt a, pt b){ return dot(dir, a) < dot(dir, b); }); }
\ No newline at end of file |
