Hi all!
I really really need your advice here! So please do reply me. Your help is greatly appreciated!!
I need to do a translation here:
X Y Z
-3.621 15.574 14.908 (file1 - 2nd row)
-3.441 15.678 14.859 (file2 - 2nd row)
I need to move file 2 coordinates right 'on top of' of file 1.
So is it posible if I find the difference between each of the X,Y,Z coordinates and move them by the difference? And I store this difference in a matrix and move the rest of the coordinates in my matrix? How do I go about doing that? Like, do i store the difference in a variable or a matrix?
//file1
coordinates1[i][0]= Double.parseDouble(text1.substring(30,38));//X
coordinates1[i][1]= Double.parseDouble(text1.substring(38,46));//Y
coordinates1[i][2]= Double.parseDouble(text1.substring(46,56));//Z
//file2
coordinates2[i][0]= Double.parseDouble(text2.substring(30,38));//X
coordinates2[i][1]= Double.parseDouble(text2.substring(38,46));//Y
coordinates2[i][2]= Double.parseDouble(text2.substring(46,56));//Z