• Advertisement

Archived

This topic is now archived and is closed to further replies.

[NEWBIE] (Eular) Radians vs Degrees...

This topic is 6243 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

G'Day all.. When people talk about Eular, do they mean that a circle is defied as 2PI radians? while in degress a circle is 360 Deg? so to get 1 degree, we divide PI over 180? eg. double piover180 = 3.1415 / 180.0; so if i want to move 35 degrees.. i do double result = 35 * piover180; ?? -PK- Edited by - Pure Krome on January 13, 2001 5:53:03 AM Edited by - Pure Krome on January 13, 2001 5:53:34 AM

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Well your calculation is correct but there''s not much point in using a double for 3.1415
How about this: 3.1415926535897932384626433832795

Share this post


Link to post
Share on other sites
>> but there''s not much point in using a double for 3.1415

????

so what data type would u use for 3.1415?

tiny_double =P

??

-PK-

Share this post


Link to post
Share on other sites
quote:
Original post by Pure Krome

>> but there''s not much point in using a double for 3.1415

????

so what data type would u use for 3.1415?

tiny_double =P

??

-PK-


float



Digital Radiation

Share this post


Link to post
Share on other sites
Euler angles are not whether they are degrees or radians. IT jsut means using a set of rotations about the X, Y, and Z axes to determine total rotation. Unless you are systematic and careful, you can end up with different results because the order of the rotation matters. Hence quaternions.

If you are using gl calls, they take degrees, not radians, as arguments.

But if you find yourself needing to convert:

radians = PI*degrees/180.0;
degrees = 180.0*degrees/PI;

But you should use the double value of PI given. 3.1415 will be inaccurate.

All I did was pulled up the windows scientific calculator (in Accessories), hit PI and then pressed copy, and pasted it as a #define in my header

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL

Share this post


Link to post
Share on other sites

  • Advertisement