v1
Brett 2023-03-14 17:30:22 -04:00
parent edfca12b18
commit a3643e4cca
1 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,13 @@
#include <blt/math/matrix.h>
namespace blt {
constexpr float EPSILON = 0.0001f;
static inline constexpr bool f_equal(float v1, float v2) {
return v1 >= v2 - EPSILON && v1 <= v2 + EPSILON;
}
/**
* fast number integer
*/