public class Coordinate
extends java.lang.Object
Constructor and Description |
---|
Coordinate(double x,
double y)
Constructor, creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
double |
getX()
The horizontal coordinate between 0 and 1.
|
double |
getY()
The vertical coordinate between 0 and 1.
|
void |
setX(double x) |
void |
setY(double y) |
java.lang.String |
toString()
Returns this object as a human readable string.
|
public Coordinate(double x, double y)
x
- Horizontal coordinate between 0 and 1.y
- Vertical coordinate between 0 and 1.public double getX()
public double getY()
public void setX(double x)
public void setY(double y)
public java.lang.String toString()
toString
in class java.lang.Object