Radians vs. Degrees

Jef plungermonkey at cox.net
Tue Jul 16 11:44:31 EDT 2002


Jef wrote:
> 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
> 

Thanks for the info! It'll certainly save what little I have left :-p




More information about the Python-list mailing list