FVector::GetClampedToMaxSize2D

Create a copy of this vector, with the maximum 2D magnitude clamped to MaxSize. Z is unchanged.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector.h"

Syntax

FVector GetClampedToMaxSize2D
(
    float MaxSize
) const

Remarks

Create a copy of this vector, with the maximum 2D magnitude clamped to MaxSize. Z is unchanged.

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