Rotate a set of specified atoms around a given bond as the rotation axis. First however the system needs to be set to zero. Therefore the atom id to define the new coordinate system must be given for the set of specified atoms. Normally this is the atoms that is on the end of the given bond axis.
List of two atom ids of the bond to be set as an axis
List of atoms to be rotated (can also be one id)
Rotation angle
Atom id to define zero point of the new coordinate system
Examples
mol.part_rotate([0, 1], [1, 2, 3], 90, 0)