diff options
Diffstat (limited to 'src/utils.lisp')
-rw-r--r-- | src/utils.lisp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils.lisp b/src/utils.lisp new file mode 100644 index 0000000..e0f6dcd --- /dev/null +++ b/src/utils.lisp @@ -0,0 +1,9 @@ +;;;; utils.lisp + +(in-package #:wheelwork) + +(define-symbol-macro +pi-over-180+ 0.017453292519943295d0) + +(defun radians (degrees) + "Converse DEGREES to radians" + (* degrees +pi-over-180+)) |