Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static T GridSnap
(
T Location, |
Snaps a value to the nearest grid multiple | Math/UnrealMathUtility.h | |
static decltype(X *Y) GridSnap
(
Arg1 X, |
Allow mixing float/double arguments, promoting to highest precision type. | Math/UnrealMathUtility.h |
GridSnap(T, T)
Description
Snaps a value to the nearest grid multiple
| Name | GridSnap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<class T>
static T GridSnap
(
T Location,
T Grid
)
GridSnap(Arg1, Arg2)
Description
Allow mixing float/double arguments, promoting to highest precision type.
| Name | GridSnap |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename Arg1, typename Arg2, std::enable_if_t<((std::is_floating_point_v< Arg1 >||std::is_floating_point_v< Arg2 >) &&!std::is_same_v< Arg1, Arg2 >), int >>
static decltype(X *Y) GridSnap
(
Arg1 X,
Arg2 Y
)