POV-Ray : Newsgroups : povray.advanced-users : Bounding with a sky_sphere : Re: Bounding with a sky_sphere Server Time
30 Jul 2024 04:21:35 EDT (-0400)
  Re: Bounding with a sky_sphere  
From: Chris Huff
Date: 17 Feb 2000 15:25:21
Message: <chrishuff_99-60C16B.15263517022000@news.povray.org>
In article <38AC138C.A5645660@linux.itam.cas.cz>, Disnel 
<Dis### [at] linuxitamcascz> wrote:

> #macro dist(v1, v2)
>   #local dx=v2.x-v1.x;
>   #local dy=v2.y-v1.y;
>   #local dz=v2.z-v1.z;
>   ( sqrt(dx*dx + dy*dy +dz*dz) )
> #end

This would be more clearly written as:
#macro dist(v1, v2)
   vlength(v1-v2)
#end

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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