TBox2::GetClosestPointTo

Calculates the closest point on or inside the box to a given point in space.

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

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

Remarks

Calculates the closest point on or inside the box to a given point in space.

Returns

The closest point on or inside the box.

Parameters

Parameter

Description

Point

The point in space.