pdb2sql.transform.rotation_euler

pdb2sql.transform.rotation_euler(xyz, alpha, beta, gamma, center=None)[source]

Rotate given xyz coordinates from Euler rotation axis.

Parameters
  • xyz (array) – original xyz coordinates

  • alpha (float) – angle of rotation around the x axis

  • beta (float) – angle of rotation around the y axis

  • gamma (float) – angle of rotation around the z axis

  • kwargs – keyword argument to select the atoms.

Returns

array – x,y,z coordinates after rotation