pdb2sql icon indicating copy to clipboard operation
pdb2sql copied to clipboard

pdb2sql.transform.rot_mat does not allow to set center

Open LilySnow opened this issue 2 years ago • 0 comments

Sometimes we need to set rotation center that is other than the geometric center of the whole protein.

This could be fixed by changing this line of pdb2sql.transform.rot_mat():

xyz = rotate(xyz, mat)

to

xyz = rotate(xyz, mat, center)

as rotate() supports setting center

LilySnow avatar Mar 20 '23 11:03 LilySnow