POV-Ray : Newsgroups : povray.general : eliptical confusion. : Re: eliptical confusion. Server Time
10 Aug 2024 07:21:38 EDT (-0400)
  Re: eliptical confusion.  
From: Chris Huff
Date: 15 Feb 2000 07:22:51
Message: <chrishuff_99-F8138C.07235715022000@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.