define(["./Matrix2-2fec35ad","./RuntimeError-ffe03243","./when-229515d6","./EllipseGeometry-db241817","./VertexFormat-565d6a6c","./ComponentDatatype-17b06483","./WebGLConstants-4e26b85a","./PixelFormat-daf99ebc","./GeometryOffsetAttribute-ff1e192c","./Transforms-75891ac8","./combine-8ce3f24b","./EllipseGeometryLibrary-0c1fefcb","./GeometryAttribute-c0946387","./GeometryAttributes-b253752a","./GeometryInstance-dc0df93d","./GeometryPipeline-e44dfe70","./AttributeCompression-af7f4dda","./EncodedCartesian3-61860110","./IndexDatatype-b10faa0b","./IntersectionTests-c2481e4c","./Plane-c66ae040"],(function(e,t,i,r,o,a,n,l,s,d,m,c,u,p,y,_,x,G,f,h,g){"use strict";function v(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"}v.packedLength=r.EllipseGeometry.packedLength,v.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};var E=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),b={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 v.unpack=function(t,a,n){var l=r.EllipseGeometry.unpack(t,a,E);return b.center=e.Cartesian3.clone(l._center,b.center),b.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,b.ellipsoid),b.height=l._height,b.extrudedHeight=l._extrudedHeight,b.granularity=l._granularity,b.vertexFormat=o.VertexFormat.clone(l._vertexFormat,b.vertexFormat),b.stRotation=l._stRotation,b.shadowVolume=l._shadowVolume,i.defined(n)?(b.semiMajorAxis=l._semiMajorAxis,b.semiMinorAxis=l._semiMinorAxis,n._ellipseGeometry=new r.EllipseGeometry(b),n):(b.radius=l._semiMajorAxis,new v(b))},v.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},v.createShadowVolume=function(e,t,i){var r=e._ellipseGeometry._granularity,a=e._ellipseGeometry._ellipsoid,n=t(r,a),l=i(r,a);return new v({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(v.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=v.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),v.createGeometry(t)}}));
|