|
|
"Ron Parker" wrote:
> #macro DistToLS(P,A,B)
> #local SegLen = vlength(B-A);
> #local ParComp = vdot(P-A,B-A)/SegLen;
> #if ( ParComp < 0 )
> vlength(P-A)
> #else
> #if (ParComp > SegLen)
> vlength(P-B)
> #else
> (P-A-ParComp)
> #end
> #end
> #end
Thanks you!
Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated December 17)
/ Also visit http://www.povrayusers.org
Post a reply to this message
|
|