distance
xcor ycor
Parameters:
xcor |
Number |
distance in the x direction away from the caller |
ycor |
Number |
distance in the y direction away from the caller |
Description:
Reports the distance from the caller to xcor ycor. The observer is assumed to be at position (0,0). If xcor and/or ycor are off the screen, they will be wrapped to fit within the screen first.
Examples:
distance 3 4
reports 5 when the caller is at (0, 0).
distance 101 101
reports 70.7107 (on a 51x51 screen)
Related Commands:
distance-nowrap
towards
towards-nowrap