chemcoord.Cartesian.align
- Cartesian.align(other, mass_weight=False)
Align two Cartesians.
Minimize the RMSD (root mean squared deviation) between
self
andother
. Returns a tuple of copies ofself
andother
where both are centered around their centroid andother
is rotated untoself
. The rotation minimises the distances between the atom pairs of same label. Uses the Kabsch algorithm implemented withinget_kabsch_rotation()