#### Archived

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

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

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

## 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 on other sites
Well your calculation is correct but there''s not much point in using a double for 3.1415

##### 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 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

##### 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:

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 on other sites
or you could find some odd/half-assed way of doing it like THIS

ANDREW RUSSELL STUDIOS

1. 1
2. 2
Rutin
19
3. 3
4. 4
5. 5

• 9
• 9
• 9
• 14
• 12
• ### Forum Statistics

• Total Topics
633294
• Total Posts
3011241
• ### Who's Online (See full list)

There are no registered users currently online

×