computeBarycentric

Defined in include/foundation/PxMathUtils.h

inline void computeBarycentric(const PxVec3 &a, const PxVec3 &b, const PxVec3 &c, const PxVec3 &d, const PxVec3 &p, PxVec4 &bary)

Computes the barycentric coordinates for a point inside a tetrahedron (deprecated).

This function is deprecated. Use PxComputeBarycentric instead.

See also

PxComputeBarycentric

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