Function legion::core::math::pointProjectionOntoTriangle

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 projected

  • triPoint0: - The first triangle point

  • triPoint1: - The second triangle point

  • triPoint2: - The last triangle point

  • triNormal: - The normal of the triangle plane