define(["./Matrix2-ae0e0b05","./RuntimeError-ffc802eb","./when-e3a49219","./EllipseGeometry-5ab04572","./VertexFormat-9bafa8ef","./ComponentDatatype-64cf6611","./WebGLConstants-1c8239cc","./PixelFormat-83d70a69","./GeometryOffsetAttribute-9dbaeacc","./Transforms-a6362ad2","./combine-c7a1ec8a","./EllipseGeometryLibrary-d8883c79","./GeometryAttribute-50aef525","./GeometryAttributes-3db3f2c9","./GeometryInstance-81c02fd9","./GeometryPipeline-50591033","./AttributeCompression-8cb78525","./EncodedCartesian3-f1386330","./IndexDatatype-e12e2493","./IntersectionTests-8be403d7","./Plane-2bf1bb80"],(function(e,t,i,r,o,a,n,l,s,m,d,c,u,p,y,_,x,G,h,f,g){"use strict";function b(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"}b.packedLength=r.EllipseGeometry.packedLength,b.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}),E={center:new e.Cartesian3,radius:void 0,ellipsoid:e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new o.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return b.unpack=function(t,a,n){var l=r.EllipseGeometry.unpack(t,a,v);return E.center=e.Cartesian3.clone(l._center,E.center),E.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,E.ellipsoid),E.height=l._height,E.extrudedHeight=l._extrudedHeight,E.granularity=l._granularity,E.vertexFormat=o.VertexFormat.clone(l._vertexFormat,E.vertexFormat),E.stRotation=l._stRotation,E.shadowVolume=l._shadowVolume,i.defined(n)?(E.semiMajorAxis=l._semiMajorAxis,E.semiMinorAxis=l._semiMinorAxis,n._ellipseGeometry=new r.EllipseGeometry(E),n):(E.radius=l._semiMajorAxis,new b(E))},b.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},b.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,a=e._ellipseGeometry._ellipsoid,n=t(r,a),l=i(r,a);return new b({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:a,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:n,height:l,vertexFormat:o.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(b.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=b.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),b.createGeometry(t)}}));