Report the amount by which the turtles' coordinates xcor would change
if the turtles were
to move forward the given distances with their current headings.
Usage
dx(turtles, dist = 1)
# S4 method for agentMatrix,numeric
dx(turtles, dist = 1)
# S4 method for agentMatrix,missing
dx(turtles)
Value
Numeric. Vector of length turtles.
Arguments
turtles
AgentMatrix object representing the moving agents.
dist
Numeric. Vector of distances the turtles would have to
move forward to
compute the increment values. Must be of length 1 or of length
turtles. The default value is dist = 1.
Author
Sarah Bauduin
Details
Report the sine of the turtles' heading multiplied by the dist
values. Heading 0 is north and angles are calculated in degrees in a
clockwise manner.
References
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/.
Center for Connected Learning and Computer-Based Modeling,
Northwestern University. Evanston, IL.