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()
Subscribe to get free latest updates by email. Like our Facebook Page.
Leave a Reply
You must be logged in to post a comment.