/Engine/Source/Runtime/GeometryCore/Public/VectorUtil.h
Compute barycentric coordinates/weights of vPoint inside 2D triangle (V0,V1,V2). If point is 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 [TVector2](API\Runtime\Core\Math\TVector2)< RealType > & Point, const [TVector2](API\Runtime\Core\Math\TVector2)< RealType > & V0, const [TVector2](API\Runtime\Core\Math\TVector2)< RealType > & V1, const [TVector2](API\Runtime\Core\Math\TVector2)< RealType > & V2 ) } } }