ComputeSquaredDistanceFromBoxToPoint

Util to calculate distance from a point to a bounding box

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector.h

Include

#include "Math/Vector.h"

Syntax

float ComputeSquaredDistanceFromBoxToPoint
(
    const FVector & Mins,
    const FVector & Maxs,
    const FVector & Point
)

Remarks

Util to calculate distance from a point to a bounding box

Returns

the distance from the Point to the bounding box.

Parameters

Parameter

Description

Mins

3D Point defining the lower values of the axis of the bound box

Max

3D Point defining the lower values of the axis of the bound box

Point

3D position of interest

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