Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
radians and degrees; radians and degrees
Topic Started: Jul 19 2006, 11:03 PM (163 Views)
Guest
Unregistered

how do i make degrees into radians? with a function for U3d?
Quote Post Goto Top
 
Dr. Best
Member Avatar
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.
Offline Profile Quote Post Goto Top
 
Evolver
Member Avatar
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)
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply