1 files changed, 9 insertions(+), 0 deletions(-)
A util.ha
A util.ha => util.ha +9 -0
@@ 0,0 1,9 @@
+use math;
+
+export fn rad(deg: f32) f32 = {
+ return deg * math::PI / 180.0;
+};
+
+export fn deg(rad: f32) f32 = {
+ return rad * 180.0 / math::PI;
+};