Jump to content
  • Advertisement
Sign in to follow this  
MARS_999

Trig ?

This topic is 4153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

atan is supposed to be arc tangent correct? Well if I have 15/15 = 1 and atan(1) should = 45. Or tan^-1 on my Ti83+ shows 45 and that is what I am after. Now with my code I get .785??? Any ideas? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by MARS_999
atan is supposed to be arc tangent correct? Well if I have

15/15 = 1 and atan(1) should = 45. Or tan^-1 on my Ti83+ shows 45 and that is what I am after. Now with my code I get .785???

Any ideas?

Thanks


It's in radians. pi / 4 = 0.785. Convert to degrees by (* 180 / pi)

Share this post


Link to post
Share on other sites
Quote:
Original post by Omid Ghavami
Quote:
Original post by MARS_999
atan is supposed to be arc tangent correct? Well if I have

15/15 = 1 and atan(1) should = 45. Or tan^-1 on my Ti83+ shows 45 and that is what I am after. Now with my code I get .785???

Any ideas?

Thanks


It's in radians. pi / 4 = 0.785. Convert to degrees by (* 180 / pi)


Yep, I just figured that out... Thanks anyway.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!