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
|