Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector GetBaryCentric2D
(
const FVector& Point, |
Computes the barycentric coordinates for a given point in a triangle, only considering the XY coordinates - simpler than the Compute versions | Math/UnrealMathUtility.h | |
static FVector GetBaryCentric2D
(
const FVector2D& Point, |
Computes the barycentric coordinates for a given point in a triangle - simpler than the Compute versions | Math/UnrealMathUtility.h |
GetBaryCentric2D(const FVector &, const FVector &, const FVector &, const FVector &)
Description
Computes the barycentric coordinates for a given point in a triangle, only considering the XY coordinates - simpler than the Compute versions
| Name | GetBaryCentric2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector GetBaryCentric2D
(
const FVector & Point,
const FVector & A,
const FVector & B,
const FVector & C
)
Vector containing the three weights a,b,c such that Point = a*A + b*B + c*C or Point = A + b*(B-A) + c*(C-A) = (1-b-c)*A + b*B + c*C
Parameters
| Name | Remarks |
|---|---|
| Point | point to convert to barycentric coordinates (in plane of ABC) |
| A, B, C | three non-collinear points defining a triangle in CCW |
GetBaryCentric2D(const FVector2D &, const FVector2D &, const FVector2D &, const FVector2D &)
Description
Computes the barycentric coordinates for a given point in a triangle - simpler than the Compute versions
| Name | GetBaryCentric2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static FVector GetBaryCentric2D
(
const FVector2D & Point,
const FVector2D & A,
const FVector2D & B,
const FVector2D & C
)
Vector containing the three weights a,b,c such that Point = a*A + b*B + c*C or Point = A + b*(B-A) + c*(C-A) = (1-b-c)*A + b*B + c*C
Parameters
| Name | Remarks |
|---|---|
| Point | point to convert to barycentric coordinates (in plane of ABC) |
| A, B, C | three non-collinear points defining a triangle in CCW |