Function legion::core::math::pointToTriangle(const vec3&, const vec3&, const vec3&, const vec3&, const vec3&, bool)¶
Defined in File geometry.hpp
Function Documentation¶
-
inline float
legion::core::math
::
pointToTriangle
(const vec3 &p, const vec3 &triPoint0, const vec3 &triPoint1, const vec3 &triPoint2, const vec3 &triNormal, bool debug = false)¶ Calculates the distance between a point and a triangle plane.
- Parameters
p
: - The pointtriPoint0
: - The first triangle pointtriPoint1
: - The second triangle pointtriPoint2
: - The last triangle pointtriNormal
: - The triangle plane normal