Report the coordinates of the patches at the given
distances and directions from the
patchDistDir(world, agents, dist, angle, torus = FALSE) # S4 method for worldNLR,matrix,numeric,numeric patchDistDir(world, agents, dist, angle, torus = FALSE)
WorldMatrix or worldArray object.
Matrix (ncol = 2) with the first column "pxcor" and the second column "pycor" representing the patches coordinates, or
AgentMatrix object representing the moving agents.
Numeric. Vector of distances from the
Numeric. Absolute directions from the
Logical to determine if the
Matrix (ncol = 2) with the first column "pxcor" and the second column
"pycor" representing the coordinates of the patches at the distances
dist and directions
The order of the patches follows the order of the
torus = FALSE and the patch at distance
angle of an agent is outside the
NA are returned for the patch coordinates.
torus = TRUE, the patch coordinates from a wrapped
agents are turtles, their headings are not taken into account;
the given directions
angle are used. To find a patch at certain
distance from a turtle using the turtle's heading, look at
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.