FMath::ComputeBaryCentric3D

Computes the barycentric coordinates for a given point on a tetrahedron (3D)

Windows
MacOS
Linux

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

Syntax

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)

Returns

Vector containing the four weights a,b,c,d such that Point = a*A + b*B + c*C + d*D

Parameters

Parameter

Description

Point

point to convert to barycentric coordinates

A, B, C, D

four points defining a tetrahedron

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss