Skip to main content

slide_molecules

Function slide_molecules 

Source
pub fn slide_molecules(
    complex_coords: &[f64],
    mol_ranges: &[(usize, usize)],
    alpha: f64,
    far_dist: f64,
) -> Vec<f64>
Expand description

Rigid-body slide: move each molecule’s atoms toward/away from the global COM.

mol_ranges[m] = (start_atom, end_atom) (exclusive end) per molecule. alpha = 0 → atoms at far_dist from global COM; alpha = 1 → at complex position.