FVector2D::ClampAxes

Creates a copy of this vector with both axes clamped to the given range.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

FVector2D ClampAxes
(
    float MinAxisVal,
    float MaxAxisVal
) const

Remarks

Creates a copy of this vector with both axes clamped to the given range.

Returns

New vector with clamped axes.

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