/// Compute bonds using a uniform bond length for all types.
///
/// # Numerical rounding, and distances of zero
///
/// Behavior is specified such that distances exactly equal to the interaction range are
/// guaranteed to be included. I.e. `FracBonds::from_brute_force(coords, 0.0)` will produce
/// pairs of sites that are superimposed on each other.
Compute bonds using a uniform bond length for all types.
Compute bonds using a uniform bond length for all types .
pub fn compute(
        original_coords: &Coords,
        range: f64,
    ) -> Result<Self, Error> {
        let fake_meta = vec![(); original_coords.len()];
        Self::compute_with_meta(original_coords, &fake_meta, |(), ()| Some(range))
    }
pub fn compute ( original_coords : & Coords , range : f64 , ) -> Result < Self , Error > { let fake_meta = vec ! [ ( ) original_coords len ( ) ] ; Self :: compute_with_meta ( original_coords , & fake_meta , | ( ) , ( ) | Some ( range ) ) }
Compute bonds using a uniform bond length for all types.
Compute bonds using a uniform bond length for all types .
original_coords
&Coords
range
f64
numerical rounding, and distances of zero
Behavior is specified such that distances exactly equal to the interaction range are
guaranteed to be included. I.e. `FracBonds::from_brute_force(coords, 0.0)` will produce
pairs of sites that are superimposed on each other.
Behavior is specified such that distances exactly equal to the interaction range are guaranteed to be included . I . e . ` FracBonds :: from_brute_force ( coords 0 . 0 ) ` will produce pairs of sites that are superimposed on each other .