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