diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2024-08-10 22:41:19 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2024-08-10 22:41:19 +0200 |
| commit | 6285c377d819cbcf1883d3496e7f7d461b29e171 (patch) | |
| tree | 80f30368bfb11fba31da3adfcd033728ab8b68a8 /content/geometry/linesAndSegments.cpp | |
| parent | fdb4d0c1b54c0987367069d57a0ee56d30243431 (diff) | |
more tests
Diffstat (limited to 'content/geometry/linesAndSegments.cpp')
| -rw-r--r-- | content/geometry/linesAndSegments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/geometry/linesAndSegments.cpp b/content/geometry/linesAndSegments.cpp index 1e21cba..ddab554 100644 --- a/content/geometry/linesAndSegments.cpp +++ b/content/geometry/linesAndSegments.cpp @@ -5,7 +5,7 @@ bool pointOnLine(pt a, pt b, pt p) { // Test auf Linienschnitt zwischen a-b und c-d. (nicht identisch) bool lineIntersection(pt a, pt b, pt c, pt d) { - return abs(cross(a - b, c - d)) < EPS; + return abs(cross(a - b, c - d)) > EPS; } // Berechnet den Schnittpunkt der Graden a-b und c-d. |
