define(["./when-54335d57","./Cartesian2-697a9954","./GeometryOffsetAttribute-6e5d8e16","./Transforms-251ff661","./ComponentDatatype-417761a2","./Check-f3fec9b0","./GeometryAttribute-7ca1c9e4","./GeometryAttributes-caa08d6c","./IndexDatatype-c134ea39","./Math-737a2579","./PolygonPipeline-1048742e","./RectangleGeometryLibrary-d5132530","./RuntimeError-88a32665","./WebGLConstants-4739ce15","./EllipsoidRhumbLine-e5c51fa7"],function(p,s,c,d,b,e,_,v,E,g,f,A,t,i,a){"use strict";var h=new d.BoundingSphere,y=new d.BoundingSphere,G=new s.Cartesian3,m=new s.Rectangle;function R(e,t){var i=e._ellipsoid,a=t.height,r=t.width,n=t.northCap,o=t.southCap,l=a,u=2,s=0,e=4;n&&(--u,--l,s+=1,e-=2),o&&(--u,--l,s+=1,e-=2),s+=u*r+2*l-e;var p,c=new Float64Array(3*s),d=0,g=0,f=G;if(n)A.RectangleGeometryLibrary.computePosition(t,i,!1,g,0,f),c[d++]=f.x,c[d++]=f.y,c[d++]=f.z;else for(p=0;p