• Advertisement
Sign in to follow this  

Logic behind degree-rad convertion

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

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
Share on other sites
180deg/pi rad = 1

x rad * 180deg/pi rad

rad cancel out

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 this post


Link to post
Share on other sites
Quote:
Original post by mike25025
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)


Perfect answer! Thanks a lot, Mike!!!

Share this post


Link to post
Share on other sites
Quote:
Original post by yaroslavd
180deg/pi rad = 1
x rad * 180deg/pi rad
rad cancel out
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.


Thank you!

Share this post


Link to post
Share on other sites
Quote:
Original post by yaroslavd
You are welcome. Now how about that rating? [wink]


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

Share this post


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

  • Advertisement