Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Description
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.
| Name | Wrap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<UE::CFloatingPoint T>
static T Wrap
(
const T X,
const T Min,
const T Max
)