Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Description
Returns closest point on a tetrahedron to a point. The idea is to identify the halfplanes that the point is in relative to each face of the tetrahedron
| Name | ClosestPointOnTetrahedronToPoint |
| 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 ClosestPointOnTetrahedronToPoint
(
const FVector & Point,
const FVector & A,
const FVector & B,
const FVector & C,
const FVector & D
)
Point on tetrahedron ABCD closest to given point
Parameters
| Name | Remarks |
|---|---|
| Point | point to check distance for |
| A, B, C, D | four points defining a tetrahedron |