Function wt::intersect::cone_intersection_tolerance

Function Documentation

inline constexpr auto wt::intersect::cone_intersection_tolerance(const pqvec3_t &origin, const aabb_t &primitive_aabb) noexcept

Rough estimate for the floating-point error in cone intersection tests.

Parameters:

primitive_aabb – the AABB of the intersected primitive.