def METHOD_NAME(minx, miny, maxx, maxy, txlen, tylen):
    width = maxx - minx
    height = maxy - miny
    nw = int(width/txlen)
    nh = int(height/tylen)
    shift_minx = minx + int((width - nw * txlen)*0.5)
    shift_miny = miny + int((height - nh * tylen)*0.5)
    matrix = []
    for j in range(nh, 0, -1):
        for i in range(nw):
            ulx = shift_minx + txlen * i  # 10/5 * 1
            uly = shift_miny + tylen * j  # 10/5 * 1
            lrx = shift_minx + txlen * (i + 1)
            lry = shift_miny + tylen * (j - 1)
            matrix.append([[ulx, uly], [lrx, lry]])
    return matrix