Relocate the turtles on a circle centered on the world.

layoutCircle(world, turtles, radius, torus = FALSE)

# S4 method for worldNLR,agentMatrix,numeric
torus = FALSE)

Arguments

world WorldMatrix or worldArray object. AgentMatrix object representing the moving agents. Numeric. Radius of the circle. Logical to determine if the world is wrapped. Default is torus = FALSE.

Value

AgentMatrix representing the turtles with updated coordinates and updated data for their "heading" values and previous coordinates "prevX" and "prevY".

Details

The turtles point outwards.

If the radius value leads turtles outside of the world's extent and torus = TRUE, they are relocated on the other sides of the world, inside its extent; if torus = FALSE, the turtles are located past the world's extent.

References

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 = 9, minPycor = 0, maxPycor = 9,