Author |
Message |
petree08
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Mazer
![](http://compsci.ca/v3/uploads/user_avatars/1323750815476d9f446d80c.png)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
CodeMonkey2000
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Wed Oct 31, 2007 5:24 pm Post subject: RE:Need help with turings trigonometry procedures |
|
|
uhhh... Turing most definitely has that built in... |
|
|
|
|
![](images/spacer.gif) |
Ultrahex
|
Posted: 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* |
|
|
|
|
![](images/spacer.gif) |
petree08
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|