Modifier and Type | Method and Description |
---|---|
IPoint2D |
Turtle.getPosition()
Gets the current position of the turtle.
|
Modifier and Type | Method and Description |
---|---|
double |
IPoint2D.distanceTo(IPoint2D other)
Returns the distance between
this point and another
point. |
static void |
SimpleDrawing2.drawLine(IPoint2D from,
IPoint2D to)
Draws a line on the canvas connecting two points.
|
static void |
SimpleDrawing2.drawPoint(IPoint2D point)
Draws a point on the canvas.
|
Constructor and Description |
---|
Turtle(IPoint2D position,
Color penColor)
Construct a turtle located at the given coordinates, facing towards the
right, using the given pen color to draw with.
|