Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / *PI/180? What the hell

Author
Message
Zeal
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 3rd Mar 2006 11:14
Man I hate math. Spent the last hour trying to figure out why sin() and cos() werent working, I thought it HAD to be me so I checked everything on my end before realizing the damn functions werent functioning the way they were SUPPOSED to.

After a bit of google'n I came across *PI/180, I guess the standard math.h uses radians or some crap? Ehe I got too used to dbpros version of sin/cos.

Anyway, is there a way to get a GOOD :p sin() cos() or am I stuck pasting *PI/180 in all my calculations.

All you need is zeal
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Mar 2006 11:33
I believe sin & cos do use radians, which means your stuck with pi/180, although why not use dbSin and dbCos ?

Zeal
21
Years of Service
User Offline
Joined: 10th Oct 2002
Location: Colorado Springs, CO
Posted: 3rd Mar 2006 11:42 Edited at: 3rd Mar 2006 11:43
Whoa I searched the helpfiles and didnt see em, were they there all along!!!?

*edit Stinky I luv you!

All you need is zeal
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Mar 2006 11:44
Steady now!

David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 3rd Mar 2006 14:22
You could have just written your own wrappers of sin / cos...?

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Mar 2006 14:32
That could cause problems if your not using C++...

Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 4th Mar 2006 22:29
Quote: "*edit Stinky I luv you!
Steady now!"


And the Oscar goes to... Ang Lee's "GameDev Mountain"! LOL
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 5th Mar 2006 01:25
And this is an award winning reply

Login to post a reply

Server time is: 2024-05-06 09:48:53
Your offset time is: 2024-05-06 09:48:53