pub fn nearby_agents_except<'a, S, A, Store, Props, R, Sch>(
model: &'a StandardModel<S, A, Store, Props, R, Sch>,
position: &A::Position,
radius: usize,
exclude_id: AgentId,
) -> Vec<Ref<'a, A>>where
A: PositionedAgent,
S: SpaceInteraction<A>,
Store: AgentStore<A>,
R: RngCore,
Sch: Scheduler<StandardModel<S, A, Store, Props, R, Sch>>,Expand description
Query agent references near a position, excluding a specific agent.
The meaning of radius depends on the space: grid cells (Chebyshev),
Euclidean distance (continuous), or graph hops (graph).