define(["./defaultValue-94c3e563","./Matrix2-fc7e9822","./Transforms-3ac41eb6","./ComponentDatatype-4a60b8d6","./RuntimeError-c581ca93","./GeometryAttribute-a441ff32","./GeometryAttributes-7df9bef6","./IndexDatatype-db156785","./WallGeometryLibrary-627e5288","./_commonjsHelpers-3aae1032-f55dc0c4","./combine-761d9c3f","./WebGLConstants-7dccdc96","./arrayRemoveDuplicates-06991c15","./PolylinePipeline-0e310844","./EllipsoidGeodesic-dc94f381","./EllipsoidRhumbLine-daebc75b","./IntersectionTests-68fbc42d","./Plane-e20fba8c"],(function(e,i,t,n,o,r,s,a,l,d,m,u,p,c,f,h,g,y){"use strict";const E=new i.Cartesian3,_=new i.Cartesian3;function w(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT);const r=t.positions,s=t.maximumHeights,a=t.minimumHeights;if(!e.defined(r))throw new o.DeveloperError("options.positions is required.");if(e.defined(s)&&s.length!==r.length)throw new o.DeveloperError("options.positions and options.maximumHeights must have the same length.");if(e.defined(a)&&a.length!==r.length)throw new o.DeveloperError("options.positions and options.minimumHeights must have the same length.");const l=e.defaultValue(t.granularity,n.CesiumMath.RADIANS_PER_DEGREE),d=e.defaultValue(t.ellipsoid,i.Ellipsoid.WGS84);this._positions=r,this._minimumHeights=a,this._maximumHeights=s,this._granularity=l,this._ellipsoid=i.Ellipsoid.clone(d),this._workerName="createWallOutlineGeometry";let m=1+r.length*i.Cartesian3.packedLength+2;e.defined(a)&&(m+=a.length),e.defined(s)&&(m+=s.length),this.packedLength=m+i.Ellipsoid.packedLength+1}w.pack=function(t,n,r){if(!e.defined(t))throw new o.DeveloperError("value is required");if(!e.defined(n))throw new o.DeveloperError("array is required");let s;r=e.defaultValue(r,0);const a=t._positions;let l=a.length;for(n[r++]=l,s=0;s0)for(d=new Array(a),s=0;s0)for(m=new Array(a),s=0;s