summaryrefslogtreecommitdiff
path: root/src/math.h
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-02-09 02:12:42 -0600
committerepoch <epoch@hacking.allowed.org>2017-02-09 02:12:42 -0600
commitd98c4fe440f2abe3a6682e9e7f9a439fe2540a21 (patch)
treed9a84ae8d429c9cf0ead55d3e93599c9ba4dd9cb /src/math.h
parent15e1287f8bdd952ebce07fcd88381a9c2d836a61 (diff)
downloadhackvr-d98c4fe440f2abe3a6682e9e7f9a439fe2540a21.tar.gz
hackvr-d98c4fe440f2abe3a6682e9e7f9a439fe2540a21.zip
converted more things to use the radians and degrees structures, fixed up distance between camera stuff (try using p and l to change during runtime) and got rid of a couple things that were commented out anyway.
Diffstat (limited to 'src/math.h')
-rw-r--r--src/math.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/math.h b/src/math.h
index 1afe959..dac2409 100644
--- a/src/math.h
+++ b/src/math.h
@@ -8,11 +8,11 @@
#undef __USE_GNU
real distance2(c2_t p1,c2_t p2);
-c2_t rotate_c2(c2_t p1,c2_t p2,real dr);
-c3_t rotate_c3_xr(c3_t p1,c3_t p2,real xr);
-c3_t rotate_c3_yr(c3_t p1,c3_t p2,real yr);
-c3_t rotate_c3_zr(c3_t p1,c3_t p2,real zr);
-real d2r(int d);
-real points_to_angle(c2_t p1,c2_t p2);
+c2_t rotate_c2(c2_t p1,c2_t p2,radians dr);
+c3_t rotate_c3_xr(c3_t p1,c3_t p2,radians xr);
+c3_t rotate_c3_yr(c3_t p1,c3_t p2,radians yr);
+c3_t rotate_c3_zr(c3_t p1,c3_t p2,radians zr);
+radians d2r(degrees d);
+radians points_to_angle(c2_t p1,c2_t p2);
#endif