POV-Ray : Newsgroups : povray.advanced-users : Bounding with a sky_sphere : Re: Bounding with a sky_sphere Server Time
2 Nov 2024 07:24:27 EDT (-0400)
  Re: Bounding with a sky_sphere  
From: Vaclav Cermak
Date: 18 Feb 2000 05:49:44
Message: <38AD3272.63B24DA8@itam.cas.cz>
Chris Huff wrote:
> 
> 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/

And then we don't need macro, you are right.

Disnel


Post a reply to this message

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