POV-Ray : Newsgroups : povray.newusers : Atan function : Re: Atan function Server Time
28 Apr 2024 16:35:20 EDT (-0400)
  Re: Atan function  
From: kevva
Date: 8 Nov 2014 13:05:01
Message: <web.545e5b25464ead14b96413000@news.povray.org>
Doctor John <j.g### [at] gmailcom> wrote:
> On 08/11/14 16:35, kevva wrote:
> > HI Guys
> > When using the Atan2(x,y) function I get a domain error when one or both of the

> > any way. What Am I missing?
> >
> >
> >
>
> I'm probably wrong (I usually am) but my reading of the docs says that
> atan(a, b) says that atan will return a correct number when 'b' is zero;
> it says nothing about 'a'.
> What exactly are you trying to do? A code snippet would help.
>
> John
> --
> Protect the Earth
> It was not given to you by your parents
> You hold it in trust for your children

Hi John
You may be right, I have an object that might just pass over the X/Y axis making
that var 0. I have written a cludge that uses the atan() when a zero is
detected. It works but it is messy!.

I my self do not have an internet connection right now so a mate Kevva has
helped me out with this. So a code example might just take me a couple of days
to get, but thanks for the advice.


Post a reply to this message

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