chore: initial commit

This commit is contained in:
fallenoak 2023-01-02 13:17:18 -06:00
commit 70b00c5c38
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
965 changed files with 264882 additions and 0 deletions

22
src/math/Utils.hpp Normal file
View file

@ -0,0 +1,22 @@
#ifndef MATH_UTILS_HPP
#define MATH_UTILS_HPP
#include <cmath>
#include <cstdint>
#define WHOA_EPSILON_1 0.00000023841858
#define WHOA_EPSILON_2 0.0000099999997
inline bool AreEqual(float a, float b, double epsilon) {
return std::abs(a - b) < epsilon;
}
inline bool NotEqual(float a, float b, double epsilon) {
return std::abs(a - b) >= epsilon;
}
inline float SignOf(float value) {
return value >= 0.0 ? 1.0f : -1.0f;
}
#endif