TBoxSphereBounds::ComputeSquaredDistanceFromBoxToPoint

Calculates the squared distance from a point to a bounding box

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/BoxSphereBounds.h"

Syntax

T ComputeSquaredDistanceFromBoxToPoint
(
    const TVector< T > & Point
) const

Remarks

Calculates the squared distance from a point to a bounding box

Returns

The distance.

Parameters

Parameter

Description

Point

The point.