public  double[] getBoundingBox(int x, int y, int zoom) {
        double tileSize = MAP_SIZE / Math.pow(2, zoom);
        double minx = TILE_ORIGIN[ORIG_X] + x * tileSize;
        double maxx = TILE_ORIGIN[ORIG_X] + (x + 1) * tileSize;
        double miny = TILE_ORIGIN[ORIG_Y] - (y + 1) * tileSize;
        double maxy = TILE_ORIGIN[ORIG_Y] - y * tileSize;

        double[] bbox = new double[4];
        bbox[MINX] = minx;
        bbox[MINY] = miny;
        bbox[MAXX] = maxx;
        bbox[MAXY] = maxy;

        return bbox;
    }
public double [ ] getBoundingBox ( int x , int y , int zoom ) { double tileSize = MAP_SIZE / Math . pow ( 2 , zoom ) ; double minx = TILE_ORIGIN [ ORIG_X ] + x * tileSize ; double maxx = TILE_ORIGIN [ ORIG_X ] + ( x + 1 ) * tileSize ; double miny = TILE_ORIGIN [ ORIG_Y ] - ( y + 1 ) * tileSize ; double maxy = TILE_ORIGIN [ ORIG_Y ] - y * tileSize ; double [ ] bbox = new double [ 4 ] ; bbox [ MINX ] = minx ; bbox [ MINY ] = miny ; bbox [ MAXX ] = maxx ; bbox [ MAXY ] = maxy ; return bbox ; }
level.