Template Function wt::intersect::test_ball_aabb(const ball_t&, const pqvec3_w_t<W>&, const pqvec3_w_t<W>&)¶
Defined in File ball.hpp
Function Documentation¶
-
template<std::size_t W>
inline intersect_ball_aabb_w_ret_t<W> wt::intersect::test_ball_aabb(const ball_t &ball, const pqvec3_w_t<W> &aabb_min, const pqvec3_w_t<W> &aabb_max) noexcept¶ Ball-AABB intersection test. Checks for intersection and (strict) containment. Wide test. The tests treat the AABB’s shell differently:
intersection testing: the AABB is assumed to include its shell
containment testing: this test is strict, and the AABB is assumed to NOT include its shell