TVector2::ClampAxes

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Vector2D.h"

Syntax

TVector2< T > ClampAxes
(
    T MinAxisVal,
    T MaxAxisVal
) const

Remarks

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

Returns

New vector with clamped axes.