POV-Ray : Newsgroups : povray.newusers : Simple trig question : Re: Simple trig question Server Time
28 Jul 2024 22:20:05 EDT (-0400)
  Re: Simple trig question  
From: Trevor G Quayle
Date: 13 Jun 2007 16:05:01
Message: <web.46704cf6f87630f4c150d4c10@news.povray.org>
"TheMightyZog" <Chr### [at] HotPOPcom> wrote:
> Thanks tgq, but
>    rotate<(degrees(atan2(1,2))),0,0>
> is not exactly the same as
>   rotate<30,0,0>
>  - it is a little off as I suspect it is using the arc of a radian circle
> instead of straight lines

Of course this isn't the same.  the arctan of 1/2 is ~28.6 degrees not 30.
I.e., the tan of 30 is not 1/2, it's 0.577, you are thinking of sin(30)
which is O/H not O/A:

rotate<(degrees(asin(1/2))),0,0> = rotate<30,0,0>


-tgq


Post a reply to this message

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