Function wt::intersect::test_ray_rectangle

Function Documentation

inline bool wt::intersect::test_ray_rectangle(const ray_t &r, const pqvec3_t &a, const pqvec3_t &b, const pqvec3_t &c, const pqvec3_t &d, const pqrange_t<> &range = pqrange_t<>::positive()) noexcept

Ray-rectangle intersection test. a-b, b-c, c-d, d-a are the edges of the rectangle.