Computer Science Canada

Need help with turings trigonometry procedures

Author:  petree08 [ Wed Oct 31, 2007 11:21 am ]
Post subject:  Need help with turings trigonometry procedures

er yeah i know how to use the cosd and sind commands and i was wondering if there was a way do use the inverse sine law cuz icouldn't find a command for it

im trying to find angles for a game im working on any help would be awesome

Author:  Mazer [ Wed Oct 31, 2007 12:44 pm ]
Post subject:  RE:Need help with turings trigonometry procedures

arcsin = sin inverse

I'll let you work out the rest.

Author:  CodeMonkey2000 [ Wed Oct 31, 2007 3:37 pm ]
Post subject:  RE:Need help with turings trigonometry procedures

arcsin (x) = arctan (sqrt ((x *x) / (1 - (x *x))))
arccos (x) = arctan (sqrt ((1 - (x *x)) / (x *x)))

Turing doesn't have this built in, but you can make your own functions.

Author:  Clayton [ Wed Oct 31, 2007 5:24 pm ]
Post subject:  RE:Need help with turings trigonometry procedures

uhhh... Turing most definitely has that built in...

Author:  Ultrahex [ Wed Oct 31, 2007 5:39 pm ]
Post subject:  Re: Need help with turings trigonometry procedures

*cough*
Radians:
arcsin
arccos
arctan
Degrees:
arcsind
arccosd
arctand
*cough*

Author:  petree08 [ Wed Oct 31, 2007 6:51 pm ]
Post subject:  RE:Need help with turings trigonometry procedures

k thanx a lot guys ive always been finding the slope between two points (without trig) and it doesn't work out as clean as just having an angle.


: