Turtle and Observer Command

distance-nowrap xcor ycor

Returns the distance from the caller to xcor ycor without wrapping. The observer is assumed to be at position (0,0).

Examples:

distance-nowrap 3 4 returns 5 when the caller is at (0,0).

Note: If the patch canvas is 100 patches wide, distance-nowrap 99 0 would return 99 while distance 99 0 would return 1.

Related commands: