getX
index
Name
getX ()
Description
Returns X coordinate of Turtle.
Syntax
getX ();
Parameters
None
Returns
x
Turtle's X coordinate
double
Related
getY()
getHeading()
setX()
setY()
setHeading()
Example
Turtle t = new Turtle(this); double x; t.forward(50); x=t.getX();