POV-Ray : Newsgroups : povray.advanced-users : What... the hell...? : Re: What... the hell...? Server Time
28 Jul 2024 10:24:54 EDT (-0400)
  Re: What... the hell...?  
From: Orchid XP v2
Date: 11 Mar 2006 17:06:53
Message: <441349fd$1@news.povray.org>
>>Um... yeah, OK... so why does atan2(0, 0) give we a fatal parse error?
> 
> The arguments to atan2 are the rise (A) and run (B) of a tangent line for
> which you want to know the angle.  If the line runs (B != 0) but does not
> rise (A = 0), you have a horizontal line.  If the line rises (A != 0) but
> does not run (B = 0), you have a vertical line.  But if the line does not
> rise (A = 0) or run (B = 0), what do you have?  The line does not go
> anywhere, so the angle is undefined.

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. :-/

(The number that results is being fed into a rotate statement, so in the 
case of both numbers being zero, whatever rotation ends up happening 
won't make any difference to the final image...)


Post a reply to this message

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