towards

HC Graphics Turtle Motion Queries towards
Orientation towardsXYZ

angle towards pos


Outputs an angle, the heading in degrees, at which the turtle should be headed so that it would point from its current position towards the position pos given as the argument.

Example:

show towards [100 100]		;45
setheading towards [300 400] fd distance [300 400]

Example:

References:

Orientation towardsXYZ