(solar-atn2): Give correct quadrant for arctan.

This commit is contained in:
Richard M. Stallman 2002-12-05 15:30:52 +00:00
parent d262de61ff
commit bd0f7fd3df

View file

@ -262,7 +262,7 @@ Returns nil if nothing was entered."
"Arctan of point X, Y."
(if (= x 0)
(if (> y 0) 90 270)
(solar-arctan (/ y x) x)))
(solar-arctan (/ y x) (solar-xy-to-quadrant x y))))
(defun solar-arccos (x)
"Arcos of X."