diff options
author | Aaron Gordon <aaronsgordon@yahoo.com> | 2012-12-19 07:31:11 (GMT) |
---|---|---|
committer | Aaron Gordon <aaronsgordon@yahoo.com> | 2012-12-19 07:31:11 (GMT) |
commit | 748ff0fee8e61e6bfc9ee751f5cceb817c4fcbc9 (patch) | |
tree | 1bec9efc0588ac0cbd76787601d6ed5a7f679a9f /misc/angles.py | |
parent | 421c2039856dae7b79882af5e0a50e2ab6a396cf (diff) |
Diffstat (limited to 'misc/angles.py')
-rw-r--r-- | misc/angles.py | 8 |
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 |