3D versions of distancexy.
Reports the distance from this agent to the point (xcor, ycor, zcor).
The distance from a patch is measured from the center of the patch.
distancexyz-nowrap always reports the in world distance, never a distance that would require wrapping around the edges of the world. With distancexyz the wrapped distance (around the edges of the world) is used if that distance is shorter than the in world distance.
if (distancexyz 0 0 0) < 10 [ set color green ] ;; all turtles less than 10 units from ;; the center of the screen turn green.
Take me to the full NetLogo Dictionary