In article <WEU### [at] econymdemoncouk>, Mike Williams
<mik### [at] econymdemoncouk> wrote:
> If you replace both occurrences of "cos(theta..." by "cos(theta/r_d..."
> (you've already declared r_d to be 180/Pi) then both orbits become nice
> smooth ellipses and the two collision points become clearly visible.
Alternately, you could use the radians() and degrees() functions to
convert between the two. This way is easier to understand(when you come
back to your code later) and doesn't require a variable like "r_d" to be
declared. These functions are built in to the official POV:
"degrees(A) Convert radians to degrees. Returns the angle measured in
degrees whose value in radians is A . Formula is degrees=A/pi*180.0 ."
"radians(A) Convert degrees to radians. Returns the angle measured in
radians whose value in degrees is A . Formula is radians=A*pi/180.0."
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|