|
 |
On Wed, 31 Jan 2001 19:16:17 -0000, Mick Hazelgrove wrote:
>Hi All
>
>Has any body got a copy of th FIndKnee macro. I can connect to John's site I
>keep getting the following message;
I don't get that message, so perhaps your browser isn't sending a
referer: header. Here ya go:
#macro FindKnee(pA,pH,lT,lS,vD)
#local lB=vlength(pA-(pH));
#if( (lB>lT+lS) | (lT>lB+lS) | (lS>lT+lB) )
#error "Invalid span lengths.\n"
#end
#local tX=(lT*lT-lS*lS+lB*lB)/2/lB;
#local tY=sqrt(lT*lT-tX*tX);
#local vO=vnormalize(pA-(pH));
#local vF=vnormalize(vcross(vD,vO));
#local vU=vnormalize(vcross(vO,vF));
(pH+vO*tX+vU*tY)
#end
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |