Re: trig

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu