POV-Ray : Newsgroups : povray.advanced-users : What... the hell...? : Re: What... the hell...? Server Time
28 Jul 2024 10:19:45 EDT (-0400)
  Re: What... the hell...?  
From: Warp
Date: 19 Mar 2006 22:44:39
Message: <441e2527@news.povray.org>
Orchid XP v2 <voi### [at] devnull> wrote:
> "atan2(A,B): Arc-tangent of (A/B). Returns the angle, measured in 
> radians, whose tangent is (A/B). Returns appropriate value even if B is 
> zero. Use atan2(A,1) to compute usual atan(A) function."

> Um... yeah, OK... so why does atan2(0, 0) give we a fatal parse error?

  Because the result is not defined. You are basically asking the
direction of a zero vector, which has none.

-- 
                                                          - Warp


Post a reply to this message

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