Function wt::intersect::test_ball_aabb(const ball_t&, const aabb_t&)

Function Documentation

inline intersect_ball_aabb_ret_t wt::intersect::test_ball_aabb(const ball_t &ball, const aabb_t &aabb) noexcept

Ball-AABB intersection test. Checks for intersection and (strict) containment. 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