Commit 3e98aaec authored by Julian Schakib's avatar Julian Schakib
Browse files

plane3 sphere3 intersection

parent 9b4e0010
Pipeline #13531 passed with stage
in 6 minutes and 14 seconds
typed-geometry @ 3446ae99
Subproject commit b727a4e1ea2bf991543a4315c0c854030c1998c1
Subproject commit 3446ae9964e4487496169aa5d1195edfd6aad88e
......@@ -16,4 +16,13 @@ TG_FUZZ_TEST(Plane, Intersect)
CHECK(distance(p, p0) == approx(0));
CHECK(distance(p, p1) == approx(0));
}
// plane3 - sphere3
{
auto const o = uniform(rng, bounds);
auto const p = tg::plane(tg::uniform<tg::dir3>(rng), o);
auto const s = tg::sphere3(o, 1);
CHECK(tg::intersects(p, s));
}
}
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