Commit e6691ed6 authored by Julian Schakib's avatar Julian Schakib
Browse files

box test

parent 6f48ec28
Pipeline #13779 failed with stage
in 6 minutes and 22 seconds
......@@ -351,13 +351,17 @@ TG_FUZZ_TEST(Plane, Intersect)
}
// random box rotation
auto nx = tg::uniform<tg::dir3>(rng);
auto ny = any_normal(nx);
auto nz = normalize(cross(nx, ny));
auto const nx = tg::uniform<tg::dir3>(rng);
auto const ny = any_normal(nx);
auto const nz = normalize(cross(nx, ny));
// random box length
half_extents[0] = nx * uniform(rng, 1.0f, 10.0f);
half_extents[1] = ny * uniform(rng, 1.0f, 10.0f);
half_extents[2] = nz * uniform(rng, 1.0f, 10.0f);
auto const box
auto const plane = tg::plane3(tg::uniform<tg::dir3>(rng), tg::pos3::zero)
}
}
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