POV-Ray : Newsgroups : povray.newusers : single point on spline and a vector: comparison : Re: single point on spline and a vector: comparison Server Time
29 Jul 2024 04:20:33 EDT (-0400)
  Re: single point on spline and a vector: comparison  
From: Slime
Date: 3 Nov 2006 02:07:31
Message: <454aeab3$1@news.povray.org>
> #if (A.x-B.x<Threshold &
>       A.y-B.y<Threshold &
>       A.z-B.z<Threshold)

You're going to want to put abs() around the left hand sides of those
comparisons.

A simpler (though slower) option is

#if ( vlength(A-B) < Threshold )

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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