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