Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
Include |
#include "Math/UnrealMathUtility.h" |
Source |
/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
static float TruncateToHalfIfClose
(
float F,
float Tolerance
)
Truncates a floating point number to half if closer than the given tolerance.
The truncated value
Parameter |
Description |
---|---|
Value |
Floating point number to truncate |
Tolerance |
Maximum allowed difference to 0.5 in order to truncate |