define(["./when-cbf8cd21","./Check-35e1a91d","./Math-e66fad2a","./Rectangle-53325d53","./WebGLConstants-95ceb4e9","./PixelFormat-d198afce","./Transforms-00c25a19","./RuntimeError-f4c64df1","./ComponentDatatype-7ee14e67","./GeometryAttribute-0b3418e6","./GeometryAttributes-90846c5f","./AttributeCompression-fd688b33","./GeometryPipeline-eeba9dc9","./EncodedCartesian3-35776b5f","./IndexDatatype-66caba23","./IntersectionTests-fdc68d04","./Plane-353c5ea0","./GeometryOffsetAttribute-84f7eff3","./VertexFormat-cc24f342","./EllipseGeometryLibrary-29ebe243","./GeometryInstance-5e3224ad","./EllipseGeometry-1c9178be"],function(o,e,t,a,i,r,n,l,s,d,m,c,u,p,y,_,h,G,x,f,g,v){"use strict";function E(e){var t=(e=o.defaultValue(e,o.defaultValue.EMPTY_OBJECT)).radius,i={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new v.EllipseGeometry(i),this._workerName="createCircleGeometry"}E.packedLength=v.EllipseGeometry.packedLength,E.pack=function(e,t,i){return v.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var w=new v.EllipseGeometry({center:new a.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),b={center:new a.Cartesian3,radius:void 0,ellipsoid:a.Ellipsoid.clone(a.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new x.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return E.unpack=function(e,t,i){var r=v.EllipseGeometry.unpack(e,t,w);return b.center=a.Cartesian3.clone(r._center,b.center),b.ellipsoid=a.Ellipsoid.clone(r._ellipsoid,b.ellipsoid),b.height=r._height,b.extrudedHeight=r._extrudedHeight,b.granularity=r._granularity,b.vertexFormat=x.VertexFormat.clone(r._vertexFormat,b.vertexFormat),b.stRotation=r._stRotation,b.shadowVolume=r._shadowVolume,o.defined(i)?(b.semiMajorAxis=r._semiMajorAxis,b.semiMinorAxis=r._semiMinorAxis,i._ellipseGeometry=new v.EllipseGeometry(b),i):(b.radius=r._semiMajorAxis,new E(b))},E.createGeometry=function(e){return v.EllipseGeometry.createGeometry(e._ellipseGeometry)},E.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,a=t(r,o),n=i(r,o);return new E({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:a,height:n,vertexFormat:x.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(E.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(e,t){return o.defined(t)&&(e=E.unpack(e,t)),e._ellipseGeometry._center=a.Cartesian3.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=a.Ellipsoid.clone(e._ellipseGeometry._ellipsoid),E.createGeometry(e)}});