`left.Rd`

Rotate the `turtles`

's headings to the left of `angle`

degrees.

left(turtles, angle) # S4 method for agentMatrix,numeric left(turtles, angle)

turtles | AgentMatrix object representing the moving agents. |
---|---|

angle | Numeric. Vector of angles in degrees by which to rotate the |

AgentMatrix representing the `turtles`

with updated "heading" values.

If a given `angle`

value is negative, then the turtle rotates to the right.

Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University. Evanston, IL.

w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4) t1 <- createTurtles(n = 10, world = w1) of(agents = t1, var = "heading")#> [1] 169.76217 220.71269 353.50096 127.83442 326.49468 341.31058 318.61398 #> [8] 223.80648 78.17190 21.20544#> [1] 349.76217 40.71269 173.50096 307.83442 146.49468 161.31058 138.61398 #> [8] 43.80648 258.17190 201.20544