Function legion::core::math::pointProjectionOntoTriangle¶
Defined in File geometry.hpp
Function Documentation¶
-
inline bool
legion::core::math
::
pointProjectionOntoTriangle
(const vec3 &p, const vec3 &triPoint0, const vec3 &triPoint1, const vec3 &triPoint2, const vec3 &triNormal)¶ Calculates if a point can be projected onto a triangle.
- Return
whther the point can be projected onto the triangle
- Parameters
p
: - The point to be projectedtriPoint0
: - The first triangle pointtriPoint1
: - The second triangle pointtriPoint2
: - The last triangle pointtriNormal
: - The normal of the triangle plane