TOWARDS

Synopsis
TOWARDS position
Description

Outputs the heading in degrees, at which the turtle should be headed so that it would point from its current position towards the position input. The position input must be given as a two item list containing the X and Y coordinates of the position to face.

Example
SETPOS [0 0]
SHOW TOWARDS [100 100]
45
SETHEADING TOWARDS [100 100]
FORWARD DISTANCE [100 100]
See Also
DISTANCE
TOWARDSXYZ

SourceForge.net Logo