From d49f3d3f73709a9a7c0bce53aa13ed28a2bd27cb Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 23 Dec 2019 23:59:02 +0800 Subject: *misc --- src/math/math.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/math/math.h') 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); -- cgit v1.1-26-g67d0