DISTANCE

Synopsis
DISTANCE position
Description

Outputs the distance the turtle must travel along a straight line to reach the position given as the position input. The position input must be a list containing two items, the X and Y coordinates.

Example
SETPOS [0 0]
SHOW DISTANCE [0 100]
100
SHOW DISTANCE [300 400]
500
SETHEADING TOWARDS [300 400]
FORWARD DISTANCE [300 400]

SourceForge.net Logo