Navigation
API > API/Runtime > API/Runtime/Chaos
Description
For points outside the triangle it will return negative barycentric coordinates that should still sum to 1. However, if the triangle is degenerate and the point is not on the line/vertex, it will return (1,0,0) with no way to detect this condition.
| Name | Chaos::ToBarycentric |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Triangle.h |
| Include Path | #include "Chaos/Triangle.h" |
namespace Chaos
{
template<typename RealType>
TVec3< RealType > Chaos::ToBarycentric
(
const TVec3< RealType > & Point,
const TVec3< RealType > & V0,
const TVec3< RealType > & V1,
const TVec3< RealType > & V2
)
}