TBox2::ComputeSquaredDistanceToPoint

Calculates the distance of a point to this box.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Box2D.h"

Syntax

T ComputeSquaredDistanceToPoint
(
    const TVector2< T > & Point
) const

Remarks

Calculates the distance of a point to this box.

Returns

The distance.

Parameters

Parameter

Description

Point

The point.