de.fhpotsdam.unfolding.core
Class Coordinate

java.lang.Object
  extended by 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.


Field Summary
 float column
           
static int MAX_ZOOM
           
 float row
           
 float zoom
           
 
Constructor Summary
Coordinate(float row, float column, float zoom)
           
 
Method Summary
 Coordinate container()
           
 Coordinate copy()
           
 Coordinate down()
           
 Coordinate down(float distance)
           
 boolean equals(java.lang.Object o)
           
 Coordinate getNeighbor(float rowDist, float colDist)
           
 int hashCode()
           
 Coordinate left()
           
 Coordinate left(float distance)
           
 Coordinate right()
           
 Coordinate right(float distance)
           
 void roundValues()
           
 java.lang.String toString()
           
 Coordinate up()
           
 Coordinate up(float distance)
           
 Coordinate zoomBy(float distance)
           
 Coordinate zoomTo(float destination)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_ZOOM

public static int MAX_ZOOM

row

public float row

column

public float column

zoom

public float zoom
Constructor Detail

Coordinate

public Coordinate(float row,
                  float column,
                  float zoom)
Method Detail

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()