POV-Ray : Newsgroups : povray.advanced-users : function accuracy? : Re: function accuracy? Server Time
28 Jul 2024 14:18:48 EDT (-0400)
  Re: function accuracy?  
From: Jim Charter
Date: 13 Mar 2005 21:06:54
Message: <4234f1be$1@news.povray.org>
Slime wrote:
>>On the face of it I looks like either vrotate or atan2 is only accurate
>>to within 5% ?
> 
> 
> If you're expecting y=5 and z=16, then you need to make sure that the
> starting vector has the same length as the vector <0,5,16>. That means you
> should start with the vector <0,0,sqrt(5*5+16*16)>. As it is, you're
> starting with a vector that is shorter than that, so you get y slightly less
> than 5 and z slightly less than 16.
> 
>  - Slime
>  [ http://www.slimeland.com/ ]
> 
> 
Thanks for being kine.  Yes I see my mistake now.


Post a reply to this message

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