Open 3D Engine EMotionFX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <Compare.h>
Static Public Member Functions | |
static MCORE_INLINE bool | CheckIfIsClose (const T &a, const T &b, float threshold) |
The class used to check differences between given objects. The differences are all represented as floats. This class can be useful in some specific algorithms used for optimizing data sets. Partial template specialization is used to calculate differences between custom object types. There is already support provided for a number of types, such as floats, ints and vectors.
|
static |
Check if two given values are close to eachother or not.
a | The first value. |
b | The second value. |
threshold | The maximum error threshold value. |