POV-Ray : Newsgroups : povray.general : I have a problem with atan2() : I have a problem with atan2() Server Time
16 Apr 2024 09:15:49 EDT (-0400)
  I have a problem with atan2()  
From: kurtz le pirate
Date: 17 Oct 2021 06:40:29
Message: <616bfd9d$1@news.povray.org>
Hello,

I have a problem with  atan2(a,b) when b = zero.

The documentation on the page 
<http://www.povray.org/documentation/view/3.7.1/228/> says :

Arc-tangent of (A/B). Returns the angle, measured in radians, whose 
tangent is (A/B). **Returns appropriate value even if B is zero**

In my case, i get : Parse Error: Domain error in atan2!

So it's up to me to test if b=zero and return the appropriate value ?



-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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