define(["exports","./Cartographic-3309dd0d","./when-b60132fc","./Check-7b2a090c","./buildModuleUrl-4e1b81e7","./Math-119be1a3","./GeometryAttribute-3a88ba31","./Cartesian2-47311507"],(function(t,a,n,r,e,o,i,s){"use strict";var g=Math.cos,h=Math.sin,u=Math.sqrt,c={computePosition:function(t,a,r,e,o,i,s){var c=a.radiiSquared,C=t.nwCorner,l=t.boundingRectangle,d=C.latitude-t.granYCos*e+o*t.granXSin,S=g(d),w=h(d),M=c.z*w,X=C.longitude+e*t.granYSin+o*t.granXCos,Y=S*g(X),m=S*h(X),p=c.x*Y,v=c.y*m,b=u(p*Y+v*m+M*w);if(i.x=p/b,i.y=v/b,i.z=M/b,r){var f=t.stNwCorner;n.defined(f)?(d=f.latitude-t.stGranYCos*e+o*t.stGranXSin,X=f.longitude+e*t.stGranYSin+o*t.stGranXCos,s.x=(X-t.stWest)*t.lonScalar,s.y=(d-t.stSouth)*t.latScalar):(s.x=(X-l.west)*t.lonScalar,s.y=(d-l.south)*t.latScalar)}}},C=new i.Matrix2,l=new a.Cartesian3,d=new a.Cartographic,S=new a.Cartesian3,w=new e.GeographicProjection;function M(t,n,r,e,o,s,g){var h=Math.cos(n),u=e*h,c=r*h,d=Math.sin(n),M=e*d,X=r*d;l=w.project(t,l),l=a.Cartesian3.subtract(l,S,l);var Y=i.Matrix2.fromRotation(n,C);l=i.Matrix2.multiplyByVector(Y,l,l),l=a.Cartesian3.add(l,S,l),s-=1,g-=1;var m=(t=w.unproject(l,t)).latitude,p=m+s*X,v=m-u*g,b=m-u*g+s*X,f=Math.max(m,p,v,b),G=Math.min(m,p,v,b),x=t.longitude,R=x+s*c,y=x+g*M,O=x+g*M+s*c;return{north:f,south:G,east:Math.max(x,R,y,O),west:Math.min(x,R,y,O),granYCos:u,granYSin:M,granXCos:c,granXSin:X,nwCorner:t}}c.computeOptions=function(t,a,n,r,e,i,g){var h,u,c,C,l,X=t.east,Y=t.west,m=t.north,p=t.south,v=!1,b=!1;m===o.CesiumMath.PI_OVER_TWO&&(v=!0),p===-o.CesiumMath.PI_OVER_TWO&&(b=!0);var f=m-p;c=(l=Y>X?o.CesiumMath.TWO_PI-Y+X:X-Y)/((h=Math.ceil(l/a)+1)-1),C=f/((u=Math.ceil(f/a)+1)-1);var G=s.Rectangle.northwest(t,i),x=s.Rectangle.center(t,d);0===n&&0===r||(x.longitude