1 |
- define(["./Cartographic-67e73ef9","./Check-52a7d806","./when-92c6cf3c","./EllipseGeometry-47042820","./Rectangle-bab7abf0","./VertexFormat-f496a3f1","./Math-92c3b5f7","./arrayFill-0358accf","./buildModuleUrl-3d15f25c","./Intersect-b97e930a","./PrimitiveType-cdfe443e","./Cartesian4-ad128b5d","./RuntimeError-c6a62a80","./WebGLConstants-71f10989","./Event-3390cd7d","./Cartesian2-6033fa5d","./ComponentDatatype-81047f82","./EllipseGeometryLibrary-f97eafbd","./GeometryAttribute-ef657318","./FeatureDetection-067cb23c","./GeometryAttributes-7f66ea53","./GeometryInstance-da5e91bc","./GeometryOffsetAttribute-b4d599f5","./GeometryPipeline-f4eddf07","./AttributeCompression-49f7b62a","./EncodedCartesian3-b86c8d65","./IndexDatatype-4c0e98b8","./IntersectionTests-a42760d9","./Plane-f8d22530"],(function(e,t,r,i,o,n,a,s,l,d,c,u,m,p,y,_,f,h,x,g,G,b,v,w,A,M,C,R,F){"use strict";function j(e){var o=(e=r.u(e,r.u.EMPTY_OBJECT)).radius;t.o.typeOf.number("radius",o);var n={center:e.center,semiMajorAxis:o,semiMinorAxis:o,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new i.Y(n),this._workerName="createCircleGeometry"}j.packedLength=i.Y.packedLength,j.pack=function(e,r,o){return t.o.typeOf.object("value",e),i.Y.pack(e._ellipseGeometry,r,o)};var k=new i.Y({center:new e.t,semiMajorAxis:1,semiMinorAxis:1}),E={center:new e.t,radius:void 0,ellipsoid:o.t.clone(o.t.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new n.n,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return j.unpack=function(t,a,s){var l=i.Y.unpack(t,a,k);return E.center=e.t.clone(l._center,E.center),E.ellipsoid=o.t.clone(l._ellipsoid,E.ellipsoid),E.height=l._height,E.extrudedHeight=l._extrudedHeight,E.granularity=l._granularity,E.vertexFormat=n.n.clone(l._vertexFormat,E.vertexFormat),E.stRotation=l._stRotation,E.shadowVolume=l._shadowVolume,r.e(s)?(E.semiMajorAxis=l._semiMajorAxis,E.semiMinorAxis=l._semiMinorAxis,s._ellipseGeometry=new i.Y(E),s):(E.radius=l._semiMajorAxis,new j(E))},j.createGeometry=function(e){return i.Y.createGeometry(e._ellipseGeometry)},j.createShadowVolume=function(e,t,r){var i=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,a=t(i,o),s=r(i,o);return new j({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:i,extrudedHeight:a,height:s,vertexFormat:n.n.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(j.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,i){return r.e(i)&&(t=j.unpack(t,i)),t._ellipseGeometry._center=e.t.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=o.t.clone(t._ellipseGeometry._ellipsoid),j.createGeometry(t)}}));
|