setxcor-towards (setx-towards)
angle distance x-coordinate
Parameters:
angle |
Number |
An angle from 0 to 360 |
distance |
Number |
A number of units away |
x-coordinate |
Number |
A coordinate on the x-axis |
Description:
Sets the x-coordinate of the turtle distance away at an angle of angle from the caller to x-coordinate.
Examples:
setxcor-towards 0 1 5
sets the x-coordinate of the turtle one unit above the caller to 5.
Related Commands:
setxcor
setxcor-at
setxcor-of
setxy-towards
setycor-towards
xcor-towards