|
|
This is untested but I'm fairly sure it's right.
Assume X, Y, Z are the coords of the point in question.
D is the distance to the unit circle.
D = sqrt( pow(Y,2) + pow(sqrt(pow(X,2)+pow(Z,2))-1,2) )
Good luck.
Gordon
<gbe### [at] birdcameroncomau>
Peter Popov wrote in message <3c796fc0.8500773@news.povray.org>...
>Can anyone suggest an equation that gives the distance to a unit
>circle lying in the x-z plane? It should look like an wood pattern
>whose axis is not +z but a circle. Any ideas?
>
>TIA.
>
>
>---------
>Peter Popov
>ICQ: 15002700
Post a reply to this message
|
|