POV-Ray : Newsgroups : povray.general : Vector comparison : Re: Vector comparison Server Time
29 Jul 2024 04:25:47 EDT (-0400)
  Re: Vector comparison  
From: Albun
Date: 28 Dec 2012 06:00:01
Message: <web.50dd7a9b64cb6c105749dd3d0@news.povray.org>
So, for good result i find the 'near zero value', .25 and .5, not less. I think
it's a gremlin's fake who make noise on floating point operations...


#declare DeltaLenSquared = vdot((Pos_ - Pos_compare),(Pos_ - Pos_compare));
#if (DeltaLenSquared < 0.25)



#declare DeltaLen = vlength(Pos_ - Pos_compare);
#if (DeltaLen < 0.5)


Thanks a lot


Post a reply to this message

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