comparison temp/tmalign.monomerA.rebuilt.templateA.mat @ 17:c790d25086dc draft

"planemo upload commit b0ede77caf410ab69043d33a44e190054024d340-dirty"
author guerler
date Wed, 28 Oct 2020 05:11:56 +0000
parents
children
comparison
equal deleted inserted replaced
16:16eb2acaaa20 17:c790d25086dc
1 ------ The rotation matrix to rotate Chain_1 to Chain_2 ------
2 m t[m] u[m][0] u[m][1] u[m][2]
3 0 114.7456592595 -0.2923604302 -0.9558820427 -0.0285464415
4 1 170.0158193507 -0.2061349361 0.0921399806 -0.9741758630
5 2 -345.1552343427 0.9338274825 -0.2789260555 -0.2239787681
6
7 Code for rotating Structure A from (x,y,z) to (X,Y,Z):
8 for(i=0; i<L; i++)
9 {
10 X[i] = t[0] + u[0][0]*x[i] + u[0][1]*y[i] + u[0][2]*z[i];
11 Y[i] = t[1] + u[1][0]*x[i] + u[1][1]*y[i] + u[1][2]*z[i];
12 Z[i] = t[2] + u[2][0]*x[i] + u[2][1]*y[i] + u[2][2]*z[i];
13 }