In the Agents API there is a function Agents.nearby_positions. And in the code as well:
https://github.com/JuliaDynamics/Agents.jl/blob/ac265f9cd094684c1768e4170da70ce1cc220771/src/spaces/grid_general.jl
@Datseris Are these the ones you referring to?
1 Like