|
|
Hi All
I hope this isn't to easy for this group, it sure is hard as hell for me,
hope you can help. I want to create a macro that will solve the following
but I'm stuck.
I have 3 points P0, P1, P2
P0 and P1 are connected by a cylinder of one unit length
P1 and P2 are connected by a cylinder of two units length
roughly in this configuraton:
P0 / <0,0,0>
/
/
\ P1
\
\
\
\
\ P2 eg<. 5, -2 . 5, 0>
P0 is fixed at 0
P1 is the unknown
P2 can be translated anywhere in a circle of roughly radius .5 and is a
given point
HOW do I calculate the position of P1? and or the angles of rotation of the
two cylinders P2, P1 and P1, P0
I'm not worried about errors causing the cylinders to seperate as I can see
that and adjust for it visually.
Mick
Post a reply to this message
|
|
|
|
The FindKnee() macro in the Thoroughly Useful Macros does exactly what you
want:
http://enphilistor.users4.50megs.com/macs.htm
--
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););} /*- Warp -*/
Post a reply to this message
|
|