| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| radians and degrees; radians and degrees | |
|---|---|
| Tweet Topic Started: Jul 19 2006, 11:03 PM (163 Views) | |
| Guest | Jul 19 2006, 11:03 PM Post #1 |
|
Unregistered
|
how do i make degrees into radians? with a function for U3d? |
|
|
| Dr. Best | Jul 20 2006, 12:29 AM Post #2 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There are the GM functions degtorad which converts degrees to radians and radtodeg which converts radians to degrees to do this. If you don't want to use these functions you could also define constants for the conversion: Multiplying a value by ca. 0.01745329 converts it from degrees to radians and multiplying a value by ca. 57.295779 converts it from radians to degrees. This is also a bit more efficient than the GM functions. |
![]() |
|
| Evolver | Jul 30 2006, 05:58 PM Post #3 |
|
Advanced Member
![]() ![]() ![]() ![]() ![]()
|
to convert radians to degrees use radtodeg(x) or x*(180/pi) to convert degrees radians use degtorad(x) or x*(pi/180) |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |







![]](http://z1.ifrm.com/static/1/pip_r.png)

10:34 AM Jul 11