public class Point2D extends Object
Constructor and Description |
---|
Point2D(double x,
double y)
Constructor with x and y
|
Modifier and Type | Method and Description |
---|---|
double |
getX()
Gets the x value of this Point
|
double |
getY()
Gets the y value of this Point
|
void |
setX(double x)
Sets the x value of this Point
|
void |
setY(double y)
Sets the y value of this Point
|
String |
toString()
Returns a string representation of the object.
|
public Point2D(double x, double y)
x
- y
- public double getX()
public double getY()
public void setX(double x)
x
- public void setY(double y)
y
- public String toString()