pub fn calculate_morse_interaction<F, const D: usize>(
own_pos: &SVector<F, D>,
ext_pos: &SVector<F, D>,
own_radius: F,
ext_radius: F,
cutoff: F,
strength: F,
potential_stiffness: F,
) -> Result<(SVector<F, D>, SVector<F, D>), CalcError>where
F: Copy + RealField,Expand description
Calculates the interaction strength behind the MorsePotential and MorsePotentialF32 structs.