Skip to main content

within

Function within 

Source
pub fn within(
    positions: &[[f32; 3]],
    query: &AtomSelection,
    target: &AtomSelection,
    cutoff: f32,
    backend: SpatialBackend,
    periodic: Option<&PeriodicBox>,
    context: &ExecutionContext,
) -> Result<AtomSelection, SpatialError>
Expand description

Selects query atoms within cutoff of any target atom.

Target atoms are included when they also belong to query, matching the conventional meaning of within rather than around.

ยงErrors

Returns the same errors as crate::pairs_within.