NetLogo Help: distancexy

### distancexy1.0

#### distancexy x y

Reports the distance from this agent to the point (x, y).

The distance from a patch is measured from the center of the patch. Turtles and patches use the wrapped distance (around the edges of the world) if wrapping is allowed by the topology and the wrapped distance is shorter.

    if (distancexy 0 0) > 10
      [ set color green ]
    ;; all turtles more than 10 units from
    ;; the center of the world turn green.

Take me to the full NetLogo Dictionary