summaryrefslogtreecommitdiff
path: root/rotord/src/utils.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-07-26 22:46:17 +0100
committerComment <tim@gray.(none)>2013-07-26 22:46:17 +0100
commitf4170d6bfb763ad0af4002277a37dcd1692534d5 (patch)
treedb32d9753de780063e3afeb64764e13e5c4f5087 /rotord/src/utils.h
parent3d7eea02aa7a155b84c8c74ecbfd55a1941a9297 (diff)
tidy files
Diffstat (limited to 'rotord/src/utils.h')
-rw-r--r--rotord/src/utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rotord/src/utils.h b/rotord/src/utils.h
new file mode 100644
index 0000000..3859afe
--- /dev/null
+++ b/rotord/src/utils.h
@@ -0,0 +1,10 @@
+#include <cmath>
+
+#define FLOAT_THRESHOLD .001f
+
+//float equality
+bool fequal(const float u,const float v);
+bool fless_or_equal(const float u,const float v);
+bool fgreater_or_equal(const float u,const float v);
+bool fless(const float u,const float v);
+bool fgreater(const float u,const float v);