POV-Ray : Newsgroups : povray.general : Equiation needed : Re: Equiation needed Server Time
12 Aug 2024 09:26:40 EDT (-0400)
  Re: Equiation needed  
From: Gordon
Date: 26 Feb 1999 07:21:02
Message: <36d691ae.0@news.povray.org>
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

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