Hello,
I managed to execute your code, works perfectly and in the future I'll integrate the code into a bigger project. Many thanks!!!
I was looking for the DISTANCE function ... and I saw some differences.
DECOMPOSE a[1] = pos[1]
DECOMPOSE b[1] = pos[2]
c[1] = b[1]-a[1]
c[2] = b[2]-a[2]
c[3] = b[3]-a[3]
k = DISTANCE(pos[1],pos[2])
TYPE "k = ",k
TYPE "c[1] = ", c[1]
TYPE "c[2] = ", c[2]
TYPE "c[3] = ", c[3]
pos[1] and pos[2] have the following transformation values:
pos[1] -417.769440 455.669922 341.474396 -44.681805 173.548981 134.706635
pos[2] 132.227524 605.673645 111.470772 -44.678993 173.549393 134.709900
The results of the above code are:
>k = 614.73523
c[1] = 549.99695
c[2] = 150.00372
c[3] = -230.00363
Do you know how the DISTANCE function works?