define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseGeometry-0bf73ab6","./Cartesian2-47311507","./VertexFormat-6446fca0","./Math-119be1a3","./arrayFill-4513d7ad","./BoundingSphere-561b54d0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./ComponentDatatype-c140a87d","./WebGLConstants-4ae0db90","./EllipseGeometryLibrary-134c564a","./Transforms-cb0006b0","./buildModuleUrl-3addfe33","./FeatureDetection-c3b71206","./GeometryAttribute-3a42bbdc","./PrimitiveType-39acab88","./GeometryAttributes-252e9929","./GeometryInstance-41780fb6","./GeometryOffsetAttribute-fbeb6f1a","./GeometryPipeline-e1b82a4e","./AttributeCompression-90851096","./EncodedCartesian3-f1396b05","./IndexDatatype-8a5eead4","./IntersectionTests-0c6d0a14","./Plane-097b3a8f"],(function(e,t,i,r,o,a,n,l,s,d,m,c,u,p,y,_,h,G,x,b,f,g,v,E,w,A,C,M){"use strict";function F(e){var t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={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 r.EllipseGeometry(o),this._workerName="createCircleGeometry"}F.packedLength=r.EllipseGeometry.packedLength,F.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var V=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),R={center:new e.Cartesian3,radius:void 0,ellipsoid:o.Ellipsoid.clone(o.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new a.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return F.unpack=function(t,n,l){var s=r.EllipseGeometry.unpack(t,n,V);return R.center=e.Cartesian3.clone(s._center,R.center),R.ellipsoid=o.Ellipsoid.clone(s._ellipsoid,R.ellipsoid),R.height=s._height,R.extrudedHeight=s._extrudedHeight,R.granularity=s._granularity,R.vertexFormat=a.VertexFormat.clone(s._vertexFormat,R.vertexFormat),R.stRotation=s._stRotation,R.shadowVolume=s._shadowVolume,i.defined(l)?(R.semiMajorAxis=s._semiMajorAxis,R.semiMinorAxis=s._semiMinorAxis,l._ellipseGeometry=new r.EllipseGeometry(R),l):(R.radius=s._semiMajorAxis,new F(R))},F.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},F.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,n=t(r,o),l=i(r,o);return new F({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:n,height:l,vertexFormat:a.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(F.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=F.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=o.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),F.createGeometry(t)}}));