1 |
- define(["exports","./Cartographic-67e73ef9","./Check-52a7d806","./when-92c6cf3c"],(function(e,o,n,t){"use strict";function r(){this.high=o.t.clone(o.t.ZERO),this.low=o.t.clone(o.t.ZERO)}r.encode=function(e,o){var r;return n.o.typeOf.number("value",e),t.e(o)||(o={high:0,low:0}),e>=0?(r=65536*Math.floor(e/65536),o.high=r,o.low=e-r):(r=65536*Math.floor(-e/65536),o.high=-r,o.low=e+r),o};var i={high:0,low:0};r.fromCartesian=function(e,o){n.o.typeOf.object("cartesian",e),t.e(o)||(o=new r);var h=o.high,a=o.low;return r.encode(e.x,i),h.x=i.high,a.x=i.low,r.encode(e.y,i),h.y=i.high,a.y=i.low,r.encode(e.z,i),h.z=i.high,a.z=i.low,o};var h=new r;r.writeElements=function(e,o,t){n.o.defined("cartesianArray",o),n.o.typeOf.number("index",t),n.o.typeOf.number.greaterThanOrEquals("index",t,0),r.fromCartesian(e,h);var i=h.high,a=h.low;o[t]=i.x,o[t+1]=i.y,o[t+2]=i.z,o[t+3]=a.x,o[t+4]=a.y,o[t+5]=a.z},e.i=r}));
|