Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/misc/angles.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/angles.py')
-rw-r--r--misc/angles.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/angles.py b/misc/angles.py
new file mode 100644
index 0000000..04fe080
--- /dev/null
+++ b/misc/angles.py
@@ -0,0 +1,8 @@
+"""
+Lambda functions for converting angles between radians
+and degrees
+"""
+import math
+
+deg_to_rad=lambda deg: (deg*math.pi)/180
+rad_to_deg=lambda rad: (rad/math.pi)*180 \ No newline at end of file