Commit 39fda823 authored by Julian Schakib's avatar Julian Schakib
Browse files

latest tg and more plane-sphere tests

parent cd4ce965
Pipeline #13542 failed with stage
in 4 minutes and 37 seconds
typed-geometry @ b88bb297
Subproject commit d55fdba43cb02289a74111d770d779cae2d6ced4
Subproject commit b88bb29715a2dcec9bfec9fa32a317257f0d6ab6
......@@ -38,5 +38,13 @@ TG_FUZZ_TEST(Plane, Intersect)
// orthogonally moved
auto const to = tg::sphere3(o + tg::any_normal(p.normal) * 10, r);
CHECK(tg::intersects(p, to));
// move plane
auto const n = tg::uniform<tg::dir3>(rng);
auto const pm = tg::plane(n, to.center + n * to.radius);
auto const eps = to.radius / 10000;
CHECK(intersects(pm, to, eps));
CHECK(!intersects(pm, to, -eps));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment