summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2024-08-02 16:16:57 +0200
committermzuenni <michi.zuendorf@gmail.com>2024-08-02 16:16:57 +0200
commit0293041701e07763272a429f5367c6c31c862d98 (patch)
treef29a2e185ab43c35652820e506c0f1e205976864
parent5bc03851d490c6620dce0aee9d029d6286c20774 (diff)
fix
-rw-r--r--test/geometry/linesAndSegments.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/geometry/linesAndSegments.cpp b/test/geometry/linesAndSegments.cpp
index abbcfc8..233546b 100644
--- a/test/geometry/linesAndSegments.cpp
+++ b/test/geometry/linesAndSegments.cpp
@@ -172,7 +172,7 @@ void stress_segmentIntersection2(ll range) {
if (!got.empty() != tmp) cerr << "error: 1" << FAIL;
for (pt p : got) {
if (distToSegment(a, b, p) > 1e-6) cerr << "error: 2" << FAIL;
- if (distToSegment(a, b, p) > 1e-6) cerr << "error: 3" << FAIL;
+ if (distToSegment(c, d, p) > 1e-6) cerr << "error: 3" << FAIL;
}
if (tmp) {
double gotDist = abs(got.front() - got.back());
@@ -220,7 +220,7 @@ int main() {
stress_lineIntersection(100);
stress_lineIntersection(1'000'000'000);
stress_lineIntersection2(100);
- stress_lineIntersection2(10'000);//intersection can bet at N^3
+ stress_lineIntersection2(1'000);//intersection can bet at N^3...
stress_distToLine(100);
stress_distToLine(1'000'000'000);
stress_projectToLine(100);