Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Math
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include | #include "Math/Vector.h" |
template<typename T, typename U>
T ComputeSquaredDistanceFromBoxToPoint
(
const UE::Math::TVector < T > & Mins,
const UE::Math::TVector < T > & Maxs,
const UE::Math::TVector < U > & Point
)
Remarks
Util to calculate distance from a point to a bounding box the distance from the Point to the bounding box.
Parameters
| Name | 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 |