define(["./when-54c2dc71","./Cartesian2-49b1de22","./Check-6c0211bc","./EllipsoidGeometry-112fd7e0","./VertexFormat-7572c785","./Math-44e92d6b","./GeometryOffsetAttribute-d889f085","./Transforms-e9dbfb40","./RuntimeError-2109023a","./ComponentDatatype-6d99a1ee","./WebGLConstants-76bb35d1","./GeometryAttribute-669569db","./GeometryAttributes-4fcfcf40","./IndexDatatype-46306178"],function(i,o,e,a,n,t,r,s,d,c,l,m,u,p){"use strict";function y(e){var t=i.defaultValue(e.radius,1),e={radii:new o.Cartesian3(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new a.EllipsoidGeometry(e),this._workerName="createSphereGeometry"}y.packedLength=a.EllipsoidGeometry.packedLength,y.pack=function(e,t,r){return a.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var G=new a.EllipsoidGeometry,f={radius:void 0,radii:new o.Cartesian3,vertexFormat:new n.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return y.unpack=function(e,t,r){t=a.EllipsoidGeometry.unpack(e,t,G);return f.vertexFormat=n.VertexFormat.clone(t._vertexFormat,f.vertexFormat),f.stackPartitions=t._stackPartitions,f.slicePartitions=t._slicePartitions,i.defined(r)?(o.Cartesian3.clone(t._radii,f.radii),r._ellipsoidGeometry=new a.EllipsoidGeometry(f),r):(f.radius=t._radii.x,new y(f))},y.createGeometry=function(e){return a.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(e,t){return i.defined(t)&&(e=y.unpack(e,t)),y.createGeometry(e)}});
