Navigation
Unreal Engine C++ API Reference > Runtime > Core > Math > FMath
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include | #include "Math/UnrealMathUtility.h" |
Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector4 ComputeBaryCentric3D
&40;
const FVector & Point,
const FVector & A,
const FVector & B,
const FVector & C,
const FVector & D
&41;
Remarks
Computes the barycentric coordinates for a given point on a tetrahedron (3D) Vector containing the four weights a,b,c,d such that Point = a*A + b*B + c*C + d*D
Parameters
Name | Description |
---|---|
Point | point to convert to barycentric coordinates |
A, B, C, D | four points defining a tetrahedron |