POV-Ray : Newsgroups : povray.advanced-users : What... the hell...? : Re: What... the hell...? Server Time
28 Jul 2024 10:32:06 EDT (-0400)
  Re: What... the hell...?  
From: Slime
Date: 11 Mar 2006 18:47:24
Message: <4413618c$1@news.povray.org>
> The angle is definitely undefined - but I would be quite happy for POV
> to return *any* angle to me... Now I have to figure out how to get round
> this parse error. :-/



#declare A = ...;
#declare B = ...;
#if (A != 0 | B != 0)
#declare angle = atan2(A,B);
#else
#declare angle = 0;
#end

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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