/Engine/Source/Runtime/GeometryCore/Public/VectorUtil.h
Compute barycentric coordinates/weights of vPoint inside 3D triangle (V0,V1,V2). If point is in triangle plane and inside triangle, coords will be positive and sum to 1. ie if result is a, then vPoint = a.x*V0 + a.y*V1 + a.z*V2. TODO: make robust to degenerate triangles?
namespace UE { namespace Geometry { namespace VectorUtil { template<typename RealType> [TVector](API\Runtime\Core\Math\TVector)< RealType > UE::Geometry::VectorUtil::BarycentricCoords ( const [TVector](API\Runtime\Core\Math\TVector)< RealType > & Point, const [TVector](API\Runtime\Core\Math\TVector)< RealType > & V0, const [TVector](API\Runtime\Core\Math\TVector)< RealType > & V1, const [TVector](API\Runtime\Core\Math\TVector)< RealType > & V2 ) } } }