Hello guys.
I got a file and it has numbers on rows
x1 y1 z1
x2 y2 z2
what i need is to read this 2 point ( row number one and row number 2) and calculate the distance between them using the next expression:
d=square root( (x2-x1)**2 +(y2-y1)**2 +(z2-z1)**2 )
Think about a lot of rows and a lot of comparations
for example:
point1 ----------point2------point3
i need to comparate distance between point 1 and point 2
but distance between point1 and point 3 too
I mean
p1 with p2
p1 with p3
p3 with point p1
and finally I want to print just those distance less than VALUE.
Thanks in advance
I got a file and it has numbers on rows
x1 y1 z1
x2 y2 z2
what i need is to read this 2 point ( row number one and row number 2) and calculate the distance between them using the next expression:
d=square root( (x2-x1)**2 +(y2-y1)**2 +(z2-z1)**2 )
Think about a lot of rows and a lot of comparations
for example:
point1 ----------point2------point3
i need to comparate distance between point 1 and point 2
but distance between point1 and point 3 too
I mean
p1 with p2
p1 with p3
p3 with point p1
and finally I want to print just those distance less than VALUE.
Thanks in advance