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.

https://ccl.northwestern.edu/netlogo/docs/dictionary.html#left

w1 <- createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4) t1 <- createTurtles(n = 10, world = w1) of(agents = t1, var = "heading")#> [1] 214.36738 21.11466 27.17594 73.92248 135.55823 93.46426 113.55146 #> [8] 137.74776 287.45786 53.92181#> [1] 34.36738 201.11466 207.17594 253.92248 315.55823 273.46426 293.55146 #> [8] 317.74776 107.45786 233.92181