Function legion::core::math::pointToTriangle(const vec3&, const vec3&, const vec3&, const vec3&)¶
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)¶ Calculates the distance between a point and a triangle plane.
Calculates the normal of the triangle plane and calls pointToTriangle with normal
- Parameters
p
: - The pointtriPoint0
: - The first triangle pointtriPoint1
: - The second triangle pointtriPoint2
: - The last triangle point