Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsNearlyEqual
(
Arg1 X, |
Math/UnrealMathUtility.h | ||
static bool IsNearlyEqual
(
float A, |
Checks if two floating point numbers are nearly equal. | Math/UnrealMathUtility.h | |
static bool IsNearlyEqual
(
double A, |
Math/UnrealMathUtility.h | ||
static bool IsNearlyEqual
(
Arg1 X, |
Math/UnrealMathUtility.h |
IsNearlyEqual(Arg1, Arg2)
| Name | IsNearlyEqual |
| 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 bool IsNearlyEqual
(
Arg1 X,
Arg2 Y
)
IsNearlyEqual(float, float, float)
Description
Checks if two floating point numbers are nearly equal.
| Name | IsNearlyEqual |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static bool IsNearlyEqual
(
float A,
float B,
float ErrorTolerance
)
true if A and B are nearly equal
Parameters
| Name | Remarks |
|---|---|
| A | First number to compare |
| B | Second number to compare |
| ErrorTolerance | Maximum allowed difference for considering them as 'nearly equal' |
IsNearlyEqual(double, double, double)
| Name | IsNearlyEqual |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static bool IsNearlyEqual
(
double A,
double B,
double ErrorTolerance
)
IsNearlyEqual(Arg1, Arg2, Arg3)
| Name | IsNearlyEqual |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
template<typename Arg1, typename Arg2, typename Arg3, std::enable_if_t<((std::is_floating_point_v< Arg1 >||std::is_floating_point_v< Arg2 >||std::is_floating_point_v< Arg3 >) &&(!std::is_same_v< Arg1, Arg2 >||!std::is_same_v< Arg1, Arg3 >||!std::is_same_v< Arg2, Arg3 >)), int >>
static bool IsNearlyEqual
(
Arg1 X,
Arg2 Y,
Arg3 Z
)