define(["./when-229515d6","./Matrix2-2fec35ad","./GeometryOffsetAttribute-ff1e192c","./Transforms-75891ac8","./ComponentDatatype-17b06483","./RuntimeError-ffe03243","./GeometryAttribute-c0946387","./GeometryAttributes-b253752a","./IndexDatatype-b10faa0b","./PolygonPipeline-1d19b57a","./RectangleGeometryLibrary-9b7a0917","./PixelFormat-daf99ebc","./WebGLConstants-4e26b85a","./combine-8ce3f24b","./EllipsoidRhumbLine-0b875bcf"],(function(e,t,i,a,r,n,o,l,u,s,p,c,d,f,g){"use strict";var h=new a.BoundingSphere,y=new a.BoundingSphere,b=new t.Cartesian3,m=new t.Rectangle;function _(e,t){var i=e._ellipsoid,a=t.height,n=t.width,s=t.northCap,c=t.southCap,d=a,f=2,g=0,h=4;s&&(f-=1,d-=1,g+=1,h-=2),c&&(f-=1,d-=1,g+=1,h-=2),g+=f*n+2*d-h;var y,m=new Float64Array(3*g),_=0,v=0,E=b;if(s)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,0,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;else for(y=0;y=0;y--)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,y,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(y=0,v=a-2;v>0;v--)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,y,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(var A=m.length/3*2,G=u.IndexDatatype.createTypedArray(m.length/3,A),R=0,P=0;P