Mike Williams wrote:
>
> Both problems are due to the fact that POV is inconsistent about the way
> it uses angles. The ROTATE operation uses angles measured in degrees,
> but its trig functions use angles measured in radians. You used degrees
> throughout.
>
> 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.
>
thanks for clearing this up. is there a logical reason for the
inconsistence?
also, thanks chris for pointing out that there are functions for
converting between degrees and radians.
ross
Post a reply to this message
|