Matrix (ncol = 2) with the first column pxcor and the second column
pycor representing the coordinates of the patches at the distances dist
and turtles's headings directions
of turtles. The order of the patches follows the order of the turtles.
Arguments
world
WorldMatrix or worldArray object.
turtles
AgentMatrix object representing the moving agents.
dist
Numeric. Vector of distances from the turtles. dist must be
of length 1 or of length turtles.
torus
Logical to determine if the world is wrapped. Default is
torus = FALSE.
Author
Sarah Bauduin
Details
If torus = FALSE and the patch at distance dist of a turtle
is outside the world's extent, NA
are returned for the patch coordinates. If torus = TRUE, the patch
coordinates from a wrapped world are returned.
References
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/.
Center for Connected Learning and Computer-Based Modeling,
Northwestern University. Evanston, IL.