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

## Recommended Posts

I know that to convert from degrees to rads I must do: => radValue = (degreeValue * 2 * pi) / 360.0f; But I don't know why! Could someone give me a simple answer (if there is one)?

##### Share on other sites
d / 360 will give a value between 0 (no rotation) and 1 (full rotation)

then multiplying that by 2pi to get rads because 2pi in rads is a full rotation

(2pi is a full rotation because the diamiter of a unit sphere is 2 and the cercumfrence is pi * diamiter)

##### Share on other sites

x * 180deg/pi

This still equals x because 180deg/pi = 1, but it's now expressed as a deg because that's the only unit left.

[Edited by - yaroslavd on December 3, 2004 12:52:23 AM]

##### Share on other sites
Quote:
 Original post by mike25025d / 360 will give a value between 0 (no rotation) and 1 (full rotation)then multiplying that by 2pi to get rads because 2pi in rads is a full rotation(2pi is a full rotation because the diamiter of a unit sphere is 2 and the cercumfrence is pi * diamiter)

Perfect answer! Thanks a lot, Mike!!!

##### Share on other sites
Quote:
 Original post by yaroslavd180deg/pi rad = 1x rad * 180deg/pi radrad cancel outx * 180deg/piThis still equals x because 180deg/pi = 1, but it's now expressed as a deg because that's the only unit left.

Thank you!

##### Share on other sites
You are welcome. Now how about that rating? [wink]

##### Share on other sites
Quote:
 Original post by yaroslavdYou are welcome. Now how about that rating? [wink]

Wow, there is a rate system! Cool! [wink]

1. 1
2. 2
Rutin
19
3. 3
khawk
18
4. 4
5. 5
A4L
11

• 9
• 12
• 16
• 26
• 10
• ### Forum Statistics

• Total Topics
633769
• Total Posts
3013755
×