axis_exposed#
- irmsd.api.axis_exposed.get_axis(atom_numbers: ndarray, positions: ndarray) Tuple[ndarray, ndarray, ndarray][source]#
Core API: call the Fortran routine to calculate the rotation axis, average moment, and eigenvectors
- Parameters:
atom_numbers (
(N,) int32-like) – Atomic numbers (or types).positions (
(N,3) float64-like) – Cartesian coordinates in Å.
- Returns:
rot (
(3,) float64 ndarray) – Rotation axis.avmom (
(1,) float64 ndarray) – Average moment.evec (
(3,3) float64 ndarray) – Eigenvectors.
- Raises:
ValueError – If positions does not have shape (N, 3).