/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h
Clamps X to be between Min and Max, inclusive. Overload to support mixed int64/int32 types.
static constexpr int64 Clamp ( const int64 X, const int32 Min, const int32 Max )