Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: suicidal pencil on Mon 28/12/2009 03:58:08

Title: Calculating the inverse sine (SOLVED)
Post by: suicidal pencil on Mon 28/12/2009 03:58:08
I need to calculate the inverse sine. For the formula sin(x) = a/b, I have a and b, but I need to figure out the angle, and I don't think that AGS has a built-in sin-1(x) function.
Title: Re: calculating the inverse sine
Post by: Gilbert on Mon 28/12/2009 03:59:56
Then you're not looking hard enough: :=
Maths.ArcSin() (http://www.adventuregamestudio.co.uk/manual/Maths.ArcSin.htm)
Title: Re: calculating the inverse sine
Post by: suicidal pencil on Mon 28/12/2009 04:13:13
*smacks head*

I never knew that the arcsine was the inverse sine >_<

thanks!