diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-16 18:57:08 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-16 18:57:08 -0600 |
commit | ed1704f9a110c9fa909dccb3169bf388f48279e4 (patch) | |
tree | b153bddd10a82dbcb7c5c3253e3466b61d5326ba /src/util.c | |
parent | 9eeb5293fc0d022298fb772338241aa7e8672dac (diff) |
Chatgpt saved my ass again
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -13,13 +13,6 @@ float signum(float n) { return 0.0; } -float closestAngle(float a1, float a2) { - float a = fmodf(a1, PI); - float b = fmodf(a2, PI); - float dir = b - a; - - if (fabsf(dir) > (PI/2)) - dir = -(signum(dir) * PI) + dir; - - return dir; +void printVector3(Vector3 v) { + printf("%f %f %f\n", v.x, v.y, v.z); } |