Step in turtle's move direction
move step
Move a turtle by the step distance in the movedir
direction.
If the pen is down, turtle draws a line.
Example:
repeat 8 [
(print heading movedir)
setmovedir array cos heading-90 cos heading
move 30
right 45
]
Output:
(also a drawing)
0 {0 1}
45 {6.12303176911189E-17 1}
90 {0.707106781186548 0.707106781186548}
135 {1 6.12303176911189E-17}
180 {0.707106781186548 -0.707106781186547}
-135 {6.12303176911189E-17 -1}
-90 {-0.707106781186548 -0.707106781186547}
-45 {-1 6.12303176911189E-17}
See also:
Table of Content