summaryrefslogtreecommitdiff
path: root/src/math/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/math.h')
-rw-r--r--src/math/math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/math.h b/src/math/math.h
index e63c603..1c2a9c0 100644
--- a/src/math/math.h
+++ b/src/math/math.h
@@ -24,6 +24,7 @@ extern char printbuffer[1024];
#define degree(rad) (rad * RAD2DEG)
#define compare(v1, v2) (absf((v1) - (v2)) < EPSILON)
#define swapi(a, b) {int temp = a; a = b; b = temp;}
+#define swapf(a, b) {float temp = a; a = b; b = temp;}
float rsqrt(float n);
float lerp(float from, float to, float t);