Peter Popov wrote:
> 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?
well, off the top of my head,
s = sqrt(x*x+z*z)-1
dist = sqrt(y*y+s*s)
--
Anton Sherwood -- br0### [at] p0b0x com -- http://ogre.nu/
Post a reply to this message
|