POV-Ray : Newsgroups : povray.newusers : Simple trig question : Re: Simple trig question Server Time
28 Jul 2024 22:20:38 EDT (-0400)
  Re: Simple trig question  
From: TheMightyZog
Date: 13 Jun 2007 15:21:35
Message: <467043bf@news.povray.org>
Thanks Warp, but
   rotate<(degrees(atan2(1,2))),0,0>
or
   rotate<(atan2(1,2)),0,0>
is not the same as
  rotate<30,0,0>

- 'tis a real puzzle!

"Warp" <war### [at] tagpovrayorg> wrote in message
news:4670424a@news.povray.org...
> TheMightyZog <Chr### [at] hotpopcom> wrote:
> > Thank you Marc, but I tried that the following
> >    rotate<atan(1/2),0,0>
> > should be the same as
> >   rotate<30,0,0>
>
>   It shouldn't because atan() returns radians while rotate takes degrees.
>
>   Besides, you should really use atan2().
>
> -- 
>                                                           - Warp


Post a reply to this message

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