|
static |
Compares two floating point values if they are similar.
Due to floating point imprecision it is not recommended to compare floats using the equal operator, e.g. 1f + 0.0000001f == 1.0000001f might not return true on certain machines. The Epsilon constant is used as precision threshold.
| a | First number to compare b with. |
| b | Second number to compare a with. |
true: if the two given numbers are approximately equal. false: otherwise.