/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h
Wraps X to be between Min and Max, inclusive. When X can wrap to both Min and Max, it will wrap to Min if it lies below the range and wrap to Max if it is above the range.
template<class T> static constexpr T Wrap ( const T X, const T Min, const T Max )