PDIST
Syntax PDIST
 
Explanation

Polar coordinates describe positions on the plane in terms of the distance from the turtle's home and the angle from 0 degrees. Polar coordinates measure degrees counter-clockwise from a 0 degree heading that is equivalent to 3 o'clock.

PDIST reports the distance from the turtle to its home in the center of the Graphics window.

See also SETP, PPOS, PSETHEADING, PHEADING, and PANGLE.

Examples SETP 35 60 
PDIST 
Result: 35

(The pale blue axes in the graphic above will not appear on the screen. They are included in this example as a point of reference.)

TopIndex