pub fn pairs_within(
xyz: &[[f64; 3]],
simbox: &Cell,
cutoff: f64,
mask: Option<&[bool]>,
cell_hint: Option<f64>,
half: bool,
) -> Result<Vec<Pair>, Error>Expand description
Pairs with dist2 < cutoff², one row per atom-image.
half keeps the canonical side of (i, j, S) vs (j, i, -S).
Zero-shift self pairs are omitted. Periodic self-images stay.
Image count above 2^24 is Error::TooManyImages.