select x,y from points where x >= state.minx and x <= state.maxx and y >= state.miny and y <= state.maxy;