define(["./Matrix2-671a840a","./RuntimeError-ac440aa5","./defaultValue-69ee94f4","./EllipseGeometry-6ea7a9b9","./VertexFormat-e68722dd","./ComponentDatatype-a9820060","./WebGLConstants-f63312fc","./PixelFormat-9ceadbf3","./GeometryOffsetAttribute-4d39b441","./Transforms-b2d190a4","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f","./EllipseGeometryLibrary-caef7f4b","./GeometryAttribute-77f8362f","./GeometryAttributes-1b4134a9","./GeometryInstance-8b77bc5a","./GeometryPipeline-1ece61ef","./AttributeCompression-747df01a","./EncodedCartesian3-ed89131b","./IndexDatatype-1cbc8622","./IntersectionTests-3c5a408d","./Plane-2cd3a9dd"],(function(e,t,i,r,o,a,n,s,l,d,m,c,u,p,y,_,x,G,f,h,g,E){"use strict";function b(e){const 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)};const w=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),A={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){const s=r.EllipseGeometry.unpack(t,a,w);return A.center=e.Cartesian3.clone(s._center,A.center),A.ellipsoid=e.Ellipsoid.clone(s._ellipsoid,A.ellipsoid),A.height=s._height,A.extrudedHeight=s._extrudedHeight,A.granularity=s._granularity,A.vertexFormat=o.VertexFormat.clone(s._vertexFormat,A.vertexFormat),A.stRotation=s._stRotation,A.shadowVolume=s._shadowVolume,i.defined(n)?(A.semiMajorAxis=s._semiMajorAxis,A.semiMinorAxis=s._semiMinorAxis,n._ellipseGeometry=new r.EllipseGeometry(A),n):(A.radius=s._semiMajorAxis,new b(A))},b.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},b.createShadowVolume=function(e,t,i){const r=e._ellipseGeometry._granularity,a=e._ellipseGeometry._ellipsoid,n=t(r,a),s=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:s,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)}}));
|