POV-Ray : Newsgroups : povray.general : um... : Re: um... Server Time
2 Aug 2024 02:27:38 EDT (-0400)
  Re: um...  
From: Tim Cook
Date: 27 Jan 2005 18:58:55
Message: <41f9803f$1@news.povray.org>
Slime wrote:
> You can try replacing atan(y/x) by atan2(y,x) which avoids the division by
> zero and also avoids the problem that 1/2 is equal to -1/-2 and thereby
> gives more useful results for all values of x and y.

Whee, that fixed it.  Thanks!

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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