/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
function t(t){return"Function"===t?.datasetFormat}function r(r){return t(r)?r.primaryRasters.rasters:[r]}function n(t,r,n,o){const{x:a,y:i}=r,{x:h,y:e}=n,{xmin:m,xmax:u,ymin:x,ymax:f}=t,{width:s,height:y}=t,M=s/h,c=y/e,l=Math.min(M,c),d=l<=1?0:Math.min(.1,l/100),g=Math.floor((m-a)/h+d),p=Math.floor((i-f)/e+d),w=Math.floor((u-a)/h-d),F=Math.floor((i-x)/e-d);return{ul:{x:g,y:p},width:o>0&&M<.1?0:w-g+1,height:o>0&&c<.1?0:F-p+1}}export{n as getPixelSpaceCoverage,r as getPrimaryRasters,t as isFunctionRaster};
