public class TileXY extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
x
x index of the tile (horizontal)
|
private double |
y
y number of the tile (vertical)
|
Constructor and Description |
---|
TileXY(double d,
double e)
Returns an instance of coordinates.
|
Modifier and Type | Method and Description |
---|---|
double |
getX() |
int |
getXIndex() |
double |
getY() |
int |
getYIndex() |
private final double x
private final double y
public TileXY(double d, double e)
d
- number of the tilee
- number of the tilepublic int getXIndex()
public int getYIndex()
public double getX()
public double getY()