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: Adobe, Adobe Director



