PxComputeBarycentric#
Defined in include/foundation/PxMathUtils.h
- inline void PxComputeBarycentric( )#
Computes the barycentric coordinates for a point inside a tetrahedron.
This function calculates the barycentric coordinates of a point p with respect to a tetrahedron defined by vertices a, b, c, and d.
- Parameters:
a – [in] Vertex A of the tetrahedron
b – [in] Vertex B of the tetrahedron
c – [in] Vertex C of the tetrahedron
d – [in] Vertex D of the tetrahedron
p – [in] The point for which to compute the barycentric coordinates
bary – [out] The resulting barycentric coordinates as a PxVec4