define(["exports","./Check-741c5f3c","./defaultValue-81eec7ed","./Math-e73894ab"],(function(n,e,t,r){"use strict";function a(n,e,r){this.x=t.defaultValue(n,0),this.y=t.defaultValue(e,0),this.z=t.defaultValue(r,0)}a.fromSpherical=function(n,e){t.defined(e)||(e=new a);const r=n.clock,o=n.cone,u=t.defaultValue(n.magnitude,1),i=u*Math.sin(o);return e.x=i*Math.cos(r),e.y=i*Math.sin(r),e.z=u*Math.cos(o),e},a.fromElements=function(n,e,r,o){return t.defined(o)?(o.x=n,o.y=e,o.z=r,o):new a(n,e,r)},a.clone=function(n,e){if(t.defined(n))return t.defined(e)?(e.x=n.x,e.y=n.y,e.z=n.z,e):new a(n.x,n.y,n.z)},a.fromCartesian4=a.clone,a.packedLength=3,a.pack=function(n,e,r){return r=t.defaultValue(r,0),e[r++]=n.x,e[r++]=n.y,e[r]=n.z,e},a.unpack=function(n,e,r){return e=t.defaultValue(e,0),t.defined(r)||(r=new a),r.x=n[e++],r.y=n[e++],r.z=n[e],r},a.packArray=function(n,e){const r=n.length,o=3*r;t.defined(e)?(Array.isArray(e)||e.length===o)&&e.length!==o&&(e.length=o):e=new Array(o);for(let t=0;t