Skip to content
Snippets Groups Projects
Commit 8f7b8656 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[test][geometry] test close point-segment isection off axis

parent 9cb21ed4
No related branches found
No related tags found
1 merge request!2431Cleanup/isect point simplex
......@@ -68,6 +68,14 @@ void testIntersections(std::vector<bool>& returns)
returns.push_back(testIntersection(a, b, p8));
returns.push_back(testIntersection(a, b, p9, true));
returns.push_back(testIntersection(a, b, p10, true));
// test segment that is not axis-parallel
const GlobalPosition a2(scaling);
const GlobalPosition b2(scaling*2.0);
GlobalPosition p11 = a2;
p11[dimWorld-1] += (b2-a2).two_norm()*1.5e-7;
returns.push_back(testIntersection(a2, b2, p11));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment