Arc Cosine in Adobe Director

To get a value of arc cosine in Adobe Director is pretty hard. That’s because only atan() function is provided in Lingo script. But with the only atan() function provided, we’re able to obtain the value for arc cosine too with some extra code added:

arccosine = atan(sqrt(1.0-(ratio*ratio))/ratio)

To convert it to degree, just multiply the answer to 180/pi(), or

arcsine = atan(sqrt(1.0-(ratio*ratio))/ratio)*180/pi()

Tags: ,
 If you like this post then please subscribe to my full feed RSS.
   Similar Posts:

Leave a Comment

Name (required):

E-mail (will not be published) (required):

Website (optional):

Comment: