#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. |