FBox2D::GetClosestPointTo

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Box2D.h"

Syntax

FVector2D GetClosestPointTo
(
    const FVector2D & 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.

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