Radians vs. Degrees

Jef plungermonkey at cox.net
Mon Jul 15 13:01:53 EDT 2002


Hi All,

   I'm new to this NG so please bear with me :-) I'm writing an addon 
for the Quake2 editor named QuArK and could use some advice from the 
math/coding gurus out there.

   My problem is that I'm trying to create a torus (donut) and the C 
code I'm looking at uses DTOR to convert degrees to radians and I see no 
mention of it (DTOR) in Python. My question is whether I need this in 
Python or does Python automatically convert to radians during 
calculations? Also, do the FOR loops work the same as in C++ (e.g. 
FOR(x=0, x<360, x++))? If not, any suggestions on how to do this?

TIA

-Jef




More information about the Python-list mailing list