Re: trig
- Posted by "Kat" <gertie at visionsix.com> Apr 19, 2004
- 596 views
On 20 Apr 2004, at 2:49, aku saya wrote: > > > Try this function: > > > function angle(object x, object y) > if x = 0 then > return (y > 0) * 180 > end if > return arctan(y/x) * 180/PI + 90 + (x < 0) * 180 > end function Aku, could you do me a favor, and put some (parentheses) around the last return there, to better see what operation is performed when? Kat