1
lxl
2022-09-16 2d9ddf8269640309f22053d3c92a38fd77e84358
1
define(["exports","./Rectangle-82621db8","./Check-24483042","./when-54335d57"],function(e,n,i,h){"use strict";function t(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}t.encode=function(e,n){var i;return h.defined(n)||(n={high:0,low:0}),0<=e?(i=65536*Math.floor(e/65536),n.high=i,n.low=e-i):(i=65536*Math.floor(-e/65536),n.high=-i,n.low=e+i),n};var r={high:0,low:0};t.fromCartesian=function(e,n){h.defined(n)||(n=new t);var i=n.high,o=n.low;return t.encode(e.x,r),i.x=r.high,o.x=r.low,t.encode(e.y,r),i.y=r.high,o.y=r.low,t.encode(e.z,r),i.z=r.high,o.z=r.low,n};var a=new t;t.writeElements=function(e,n,i){t.fromCartesian(e,a);var o=a.high,h=a.low;n[i]=o.x,n[i+1]=o.y,n[i+2]=o.z,n[i+3]=h.x,n[i+4]=h.y,n[i+5]=h.z},e.EncodedCartesian3=t});