getHeading
index
 
Name getHeading ()
Description Returns Turtle's current heading--the direction the Turtle is currently facing.
Syntax getHeading ();
Parameters
None  
Returns
angle  Turtle's current heading, in degrees. double
Related getX()
getY()

setX()
setY()
setHeading()
Example

    Turtle t = new Turtle(this);
    double theta;

    t.forward(50);
    t.left(10);
    theta=t.getHeading();