diff options
author | chai <chaifix@163.com> | 2019-12-23 23:59:02 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-23 23:59:02 +0800 |
commit | d49f3d3f73709a9a7c0bce53aa13ed28a2bd27cb (patch) | |
tree | 3fc2cca442106a56fc151c5faffbb24217ca83f5 /src/math/math.h | |
parent | ec111247c614663d8231245a17c314b9b8b4a28c (diff) |
*misc
Diffstat (limited to 'src/math/math.h')
-rw-r--r-- | src/math/math.h | 1 |
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); |