(core): complete meshFunction baricentric API
Description
The present mesh Function baricentric isInsideThetrahedron method takes as API, the coordinates of all four vertexes of the thetrahedron as well as the point concerned ones.
The method computes then the baricentric coordinate of the point inside the tetrahedron and applies a verification n the baricentric coordinates to check if the point is inside or not.
However, the present api allows to copute the baricentric coordinates independently.
To void to compute the baricentric coordinates twice, it might be useful to create a new method which allows to compute the isInside directly from baricentric coordiantes and to use it in the existing method:
Proposal
create
/**
- @brief Determine if the point _P is inside the tetrahedron made of (ABCD) based on P baricentric coordinates in (ABCD).
- @param barycentricCoord: P baricentric coordinates in (ABCD).
- @return true if the point _P is inside the tetrahedron (ABCD) false otherwise. */ FWMATH_API bool isInsideThetrahedron( const ::glm::dvec4 barycentricCoord);