| 1 |
- import{a as g}from"./chunk-I46SWINN.js";import{a as w}from"./chunk-EDZQSM3T.js";import{a as t}from"./chunk-NUC3LT2W.js";function i(){this.high=g.clone(g.ZERO),this.low=g.clone(g.ZERO)}i.encode=function(f,o){w.typeOf.number("value",f),t(o)||(o={high:0,low:0});var h;return f>=0?(h=Math.floor(f/65536)*65536,o.high=h,o.low=f-h):(h=Math.floor(-f/65536)*65536,o.high=-h,o.low=f+h),o};var n={high:0,low:0};i.fromCartesian=function(f,o){w.typeOf.object("cartesian",f),t(o)||(o=new i);var h=o.high,e=o.low;return i.encode(f.x,n),h.x=n.high,e.x=n.low,i.encode(f.y,n),h.y=n.high,e.y=n.low,i.encode(f.z,n),h.z=n.high,e.z=n.low,o};var c=new i;i.writeElements=function(f,o,h){w.defined("cartesianArray",o),w.typeOf.number("index",h),w.typeOf.number.greaterThanOrEquals("index",h,0),i.fromCartesian(f,c);var e=c.high,m=c.low;o[h]=e.x,o[h+1]=e.y,o[h+2]=e.z,o[h+3]=m.x,o[h+4]=m.y,o[h+5]=m.z};var r=i;export{r as a};
|