Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math > API/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
(
const FVector & Point,
const FVector & A,
const FVector & B,
const FVector & C,
const FVector & D
)
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 |