Function wt::util::is_point_in_triangle(const vec3_t&, const vec3_t&, const vec3_t&, const vec3_t&)

Function Documentation

inline bool wt::util::is_point_in_triangle(const vec3_t &p, const vec3_t &a, const vec3_t &b, const vec3_t &c) noexcept

Returns TRUE if the point ‘p’ lies within the triangle abc. ‘p’ is assumed to lie in the triangle plane, and points ‘a’,’b’,’c’ are assumed to NOT be co-linear.