Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static T Wrap
(
const T X, |
Wraps X to be between Min and Max, inclusive. | Math/UnrealMathUtility.h | |
static T Wrap
(
const T X, |
Math/UnrealMathUtility.h |
Wrap(const T, const T, const T)
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<typename T, std::enable_if_t<(std::is_floating_point_v< T >), int >>
static T Wrap
(
const T X,
const T Min,
const T Max
)
Wrap(const T, const T, const T)
| Name | Wrap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename T, std::enable_if_t<(!std::is_floating_point_v< T >), int >>
static T Wrap
(
const T X,
const T Min,
const T Max
)