define(["exports","./Cartesian3-7e9cc2ff","./Matrix2-e3fb4559","./defaultValue-81eec7ed","./Check-741c5f3c","./Transforms-98ffa11d","./Math-5f585871"],(function(t,n,a,e,o,s,r){"use strict";const i=Math.cos,c=Math.sin,g=Math.sqrt,u={computePosition:function(t,n,a,o,s,r,u){const h=n.radiiSquared,l=t.nwCorner,C=t.boundingRectangle;let S=l.latitude-t.granYCos*o+s*t.granXSin;const d=i(S),M=c(S),f=h.z*M;let w=l.longitude+o*t.granYSin+s*t.granXCos;const X=d*i(w),Y=d*c(w),m=h.x*X,p=h.y*Y,x=g(m*X+p*Y+f*M);if(r.x=m/x,r.y=p/x,r.z=f/x,a){const n=t.stNwCorner;e.defined(n)?(S=n.latitude-t.stGranYCos*o+s*t.stGranXSin,w=n.longitude+o*t.stGranYSin+s*t.stGranXCos,u.x=(w-t.stWest)*t.lonScalar,u.y=(S-t.stSouth)*t.latScalar):(u.x=(w-C.west)*t.lonScalar,u.y=(S-C.south)*t.latScalar)}}},h=new a.Matrix2;let l=new n.Cartesian3;const C=new a.Cartographic;let S=new n.Cartesian3;const d=new s.GeographicProjection;function M(t,e,o,s,r,i,c){const g=Math.cos(e),u=s*g,C=o*g,M=Math.sin(e),f=s*M,w=o*M;l=d.project(t,l),l=n.Cartesian3.subtract(l,S,l);const X=a.Matrix2.fromRotation(e,h);l=a.Matrix2.multiplyByVector(X,l,l),l=n.Cartesian3.add(l,S,l),i-=1,c-=1;const Y=(t=d.unproject(l,t)).latitude,m=Y+i*w,p=Y-u*c,x=Y-u*c+i*w,G=Math.max(Y,m,p,x),R=Math.min(Y,m,p,x),y=t.longitude,O=y+i*C,P=y+c*f,W=y+c*f+i*C;return{north:G,south:R,east:Math.max(y,O,P,W),west:Math.min(y,O,P,W),granYCos:u,granYSin:f,granXCos:C,granXSin:w,nwCorner:t}}u.computeOptions=function(t,n,e,o,s,i,c){let g,u=t.east,h=t.west,l=t.north,f=t.south,w=!1,X=!1;l===r.CesiumMath.PI_OVER_TWO&&(w=!0),f===-r.CesiumMath.PI_OVER_TWO&&(X=!0);const Y=l-f;g=h>u?r.CesiumMath.TWO_PI-h+u:u-h;const m=Math.ceil(g/n)+1,p=Math.ceil(Y/n)+1,x=g/(m-1),G=Y/(p-1),R=a.Rectangle.northwest(t,i),y=a.Rectangle.center(t,C);0===e&&0===o||(y.longitude