define(["exports","./Matrix2-ccd5b911","./RuntimeError-346a3079","./when-4bbc8319"],function(e,n,i,r){"use strict";function h(){this.high=n.Cartesian3.clone(n.Cartesian3.ZERO),this.low=n.Cartesian3.clone(n.Cartesian3.ZERO)}h.encode=function(e,n){var i;return r.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 t={high:0,low:0};h.fromCartesian=function(e,n){var i=(n=!r.defined(n)?new h:n).high,o=n.low;return h.encode(e.x,t),i.x=t.high,o.x=t.low,h.encode(e.y,t),i.y=t.high,o.y=t.low,h.encode(e.z,t),i.z=t.high,o.z=t.low,n};var a=new h;h.writeElements=function(e,n,i){h.fromCartesian(e,a);var o=a.high,e=a.low;n[i]=o.x,n[i+1]=o.y,n[i+2]=o.z,n[i+3]=e.x,n[i+4]=e.y,n[i+5]=e.z},e.EncodedCartesian3=h});