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 bool ComputeBarycentricTri
(
const FVector & Point,
const FVector & A,
const FVector & B,
const FVector & C,
FVector & OutBarycentric,
double Tolerance
)
Remarks
Computes the barycentric coordinates for a given point in a triangle false if the result could not be computed (occurs when the triangle area is too small)
Parameters
| Name | Description |
|---|---|
| Point | point to convert to barycentric coordinates (in plane of ABC) |
| A, B, C | three non-collinear points defining a triangle in CCW |
| OutBarycentric | Vector containing the three weights a,b,c such that Point = aA + bB + cC or Point = A + b(B-A) + c(C-A) = (1-b-c)A + bB + cC |
| Tolerance | Tolerance for ignoring too-small triangles |