aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/gc/UTFGridPosition.java
blob: 9121dadaaa12757374bc1b016286dc12f940a8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package cgeo.geocaching.connector.gc;


/**
 * Representation of a position inside an UTFGrid
 *
 * @author blafoo
 *
 */
public final class UTFGridPosition {

    public final int x;
    public final int y;

    UTFGridPosition(final int x, final int y) {
        assert x >= 0 && x <= UTFGrid.GRID_MAXX : "x outside bounds";
        assert y >= 0 && y <= UTFGrid.GRID_MAXY : "y outside bounds";

        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}