public class Coordinate2DImpl extends java.lang.Object implements Coordinate2D
Constructor and Description |
---|
Coordinate2DImpl(float x,
float y) |
Modifier and Type | Method and Description |
---|---|
Coordinate2D |
clone() |
float |
getX() |
float |
getY() |
void |
setLocation(float x,
float y) |
java.lang.String |
toString() |
void |
translate(float vx,
float vy) |
public void translate(float vx, float vy)
translate
in interface Coordinate2D
public void setLocation(float x, float y)
setLocation
in interface Coordinate2D
public float getX()
getX
in interface Coordinate2D
public float getY()
getY
in interface Coordinate2D
public Coordinate2D clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object