Class XY
java.lang.Object
|
+----XY
- class XY
- extends Object
This class implements a pair of floating-point coordinates.
-
x
- x - coordinate
-
y
- y - coordinate
-
XY(float, float)
- Constructs a coordinate pair.
-
toString()
- Converts the coordinate pair to string.
x
protected float x
- x - coordinate
y
protected float y
- y - coordinate
XY
public XY(float x,
float y)
- Constructs a coordinate pair.
- Parameters:
- x, - y coordinates
toString
public String toString()
- Converts the coordinate pair to string.
- Overrides:
- toString in class Object