Template Function wt::intersect::intersect_cone_edge

Function Documentation

template<bool in_local = false, bool ray = false, bool line = false, bool test_clip_planes = true>
inline std::optional<intersect_cone_edge_ret_t> wt::intersect::intersect_cone_edge(const elliptic_cone_t &cone, const pqvec3_t &p0, const pqvec3_t &p1, const pqrange_t<> &range = pqrange_t<>::positive()) noexcept

Edge-cone intersection test.

Template Parameters:
  • in_local – TRUE if p0 and p1 are given in cone’s local frame

  • ray – if TRUE treat p0,p1 as a ray from p0 through p1

  • line – if TRUE treat p0,p1 as a line passing through p0 and p1 (ray must be set to TRUE as well)

  • test_clip_planes – if TRUE test intersection with near/far clip planes