Template Function wt::util::is_point_in_triangle(const pqvec3_w_t<W>&, const pqvec3_w_t<W>&, const pqvec3_w_t<W>&, const pqvec3_w_t<W>&)¶
Defined in File util.hpp
Function Documentation¶
-
template<std::size_t W>
inline b_w_t<W> wt::util::is_point_in_triangle(const pqvec3_w_t<W> &p, const pqvec3_w_t<W> &a, const pqvec3_w_t<W> &b, const pqvec3_w_t<W> &c) noexcept¶ Returns TRUE if the point ‘p’ lies within the triangle abc. Wide test. ‘p’ is assumed to lie in the triangle plane, and points ‘a’,’b’,’c’ are assumed to NOT be co-linear.