Hi everyone ,
to a precise application,at the begining of my program , i need everytime to re-learned my workbase.
Like in the inline form, i've think to realize 3 Touch'up ( or $POS_ACT triggered by a proximity sensor) action's to give P1 , P2 , P3 proper coordinates and define my new base with them.
Do you now how coordinate of the new base will be calculated ?
I imagine that :
P1 will be the new origin
P2 will be used to define C rotation ( new X axis according to Xworld)
P3 will be used to define B rotation
thus :
NewBase = { Xp1 , Yp1 , Zp1 , A,B,C)
maybe with C = atan[(Yp2-Yp1) / (Xp2-Xp1)]
but i don't know really how calculate A,B,C angles ?
Can you help me in this math problem ?
Thank you in advance.