de.fhpotsdam.unfolding.core
Class Coordinate
java.lang.Object
de.fhpotsdam.unfolding.core.Coordinate
public class Coordinate
- extends java.lang.Object
Internal(!) representation of coordinates.
It is used to determine which tiles to load. You probably won't use this class.
Constructor Summary |
Coordinate(float row,
float column,
float zoom)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_ZOOM
public static int MAX_ZOOM
row
public float row
column
public float column
zoom
public float zoom
Coordinate
public Coordinate(float row,
float column,
float zoom)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
copy
public Coordinate copy()
container
public Coordinate container()
zoomTo
public Coordinate zoomTo(float destination)
zoomBy
public Coordinate zoomBy(float distance)
getNeighbor
public Coordinate getNeighbor(float rowDist,
float colDist)
up
public Coordinate up()
up
public Coordinate up(float distance)
right
public Coordinate right()
right
public Coordinate right(float distance)
down
public Coordinate down()
down
public Coordinate down(float distance)
left
public Coordinate left()
left
public Coordinate left(float distance)
roundValues
public void roundValues()