define(["./Rectangle-82621db8","./Check-24483042","./when-54335d57","./EllipseGeometry-791d58ab","./VertexFormat-81ec7207","./Math-7a8129d6","./PixelFormat-d198afce","./WebGLConstants-95ceb4e9","./GeometryOffsetAttribute-718fa138","./Transforms-b51fdb37","./RuntimeError-88a32665","./ComponentDatatype-1a100acd","./EllipseGeometryLibrary-a65cc329","./GeometryAttribute-02fdce7a","./GeometryAttributes-caa08d6c","./GeometryInstance-4247a2b3","./GeometryPipeline-6bfd5efb","./AttributeCompression-3961575e","./EncodedCartesian3-c7ed7a62","./IndexDatatype-edb2f4d6","./IntersectionTests-afc06c64","./Plane-fd9e13db"],function(o,e,a,n,l,t,i,r,s,d,m,c,u,p,y,_,h,G,x,f,g,v){"use strict";function E(e){var t=(e=a.defaultValue(e,a.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 n.EllipseGeometry(i),this._workerName="createCircleGeometry"}E.packedLength=n.EllipseGeometry.packedLength,E.pack=function(e,t,i){return n.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var b=new n.EllipseGeometry({center:new o.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),w={center:new o.Cartesian3,radius:void 0,ellipsoid:o.Ellipsoid.clone(o.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new l.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return E.unpack=function(e,t,i){var r=n.EllipseGeometry.unpack(e,t,b);return w.center=o.Cartesian3.clone(r._center,w.center),w.ellipsoid=o.Ellipsoid.clone(r._ellipsoid,w.ellipsoid),w.height=r._height,w.extrudedHeight=r._extrudedHeight,w.granularity=r._granularity,w.vertexFormat=l.VertexFormat.clone(r._vertexFormat,w.vertexFormat),w.stRotation=r._stRotation,w.shadowVolume=r._shadowVolume,a.defined(i)?(w.semiMajorAxis=r._semiMajorAxis,w.semiMinorAxis=r._semiMinorAxis,i._ellipseGeometry=new n.EllipseGeometry(w),i):(w.radius=r._semiMajorAxis,new E(w))},E.createGeometry=function(e){return n.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:l.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 a.defined(t)&&(e=E.unpack(e,t)),e._ellipseGeometry._center=o.Cartesian3.clone(e._ellipseGeometry._center),e._ellipseGeometry._ellipsoid=o.Ellipsoid.clone(e._ellipseGeometry._ellipsoid),E.createGeometry(e)}});