POV-Ray : Newsgroups : povray.bugreports : atan2 problem : Re: atan2 problem Server Time
18 Jun 2024 08:22:40 EDT (-0400)
  Re: atan2 problem  
From: Axel Baune
Date: 15 Oct 1998 08:23:23
Message: <3625DB37.3E314FE6@neuro.informatik.uni-ulm.de>
Dan Connelly wrote:

> #macro my_atan(Y,X)
>   (((X = 0) & (Y = 0)) ? 0 : atan2(Y,X))
> #end
>
> Ron Parker wrote:
>
> > #macro my_atan2( YY, XX )
> >   #if (YY = 0 & XX = 0 )
> >     0
> >   #else
> >     atan2( YY,XX )
> >   #end
> > #end
> >
> > and use that instead.
>

Thanks, I will try it and look if it will help.


--
------------------------------------------------------------------------------
Axel Baune                                            Phone:  +49 731 502 4242
Department of Neural Information Processing             Fax:  +49 731 502 4156
University of Ulm
89069 Ulm                            email: aba### [at] neuroinformatikuni-ulmde
Germany                            URL (privat): http://www.uni-ulm.de/~abaune
------------------------------------------------------------------------------


Post a reply to this message


Attachments:
Download 'us-ascii' (2 KB)

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