aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-16 18:57:08 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-16 18:57:08 -0600
commited1704f9a110c9fa909dccb3169bf388f48279e4 (patch)
treeb153bddd10a82dbcb7c5c3253e3466b61d5326ba /src/util.c
parent9eeb5293fc0d022298fb772338241aa7e8672dac (diff)
Chatgpt saved my ass again
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/util.c b/src/util.c
index 10d4c09..e39478c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);
}