validate_spheres

Function validate_spheres 

Source
pub(crate) fn validate_spheres(
    k0: f64,
    radii: &[f64],
    epsilon: &[Complex],
    positions: &[[f64; 3]],
) -> Result<()>
Expand description

Check a cluster of homogeneous spheres in vacuum: a positive finite vacuum wavenumber and radii, one finite permittivity and position per sphere, and no two spheres touching or overlapping.