home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
GR
/
GR505.ZIP
/
LSP.EXE
/
ANGLES.LSP
< prev
next >
Wrap
Lisp/Scheme
|
1989-02-28
|
812b
|
33 lines
; ANGLES.LSP (c)1989, Barry Bowen
; ----------------------------------------------------------
; This group of routines will return the specified degrees
; in radians. The resulting values are the same as in the
; table above.
; ----------------------------------------------------------
;
; Sample Call: (D45)
; These routines can be used with the POLAR command:
; Examples: (polar pt1 (D45) 4.5)
;
; NOTE: PI may be used for 180 degrees
;
; ----------------------------------------------------------
(defun D45 () (* pi 0.25))
(defun D90 () (* pi 0.5))
(defun D135 () (* pi 0.75))
(defun D225 () (* pi 1.25))
(defun D270 () (* pi 1.5))
(defun D315 () (* pi 1.75))
(defun D360 () (* pi 2.0))
; END ------------------------------------------------------