summaryrefslogtreecommitdiff
path: root/test/geometry/linesAndSegments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/geometry/linesAndSegments.cpp')
-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);