distance-nowrap
xcor ycor
Parameters:
xcor |
Number |
units in the x direction away from the caller |
ycor |
Number |
units in the y direction away from the caller |
Description:
Reports 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).
Notes:
If the patch canvas is 100 patches wide, distance-nowrap 99 0 would return 99 while distance 99 0 would return 1.
Related Commands:
distance
towards
towards-nowrap