qp.analyze.molden.translate_to_origin

qp.analyze.molden.translate_to_origin(coordinates, center_of_mass)[source]

Translate coordinates so a reference point is at the origin.

Parameters:
  • coordinates (numpy.ndarray of shape (N, 3)) – Atomic coordinates to translate.

  • center_of_mass (array-like of shape (3,)) – Reference point to move to the origin.

Returns:

Translated coordinates.

Return type:

numpy.ndarray of shape (N, 3)