import{z as q}from"./index-b5c8f851.js";const z=q.getLogger("esri.views.3d.support.buffer.math");function x(t,n,e){V(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function V(t,n,e,r=3,d=r){if(t.length/r!==Math.ceil(n.length/d))return z.error("source and destination buffers need to have the same number of elements"),t;const u=t.length/r,i=e[0],s=e[1],o=e[2],f=e[4],a=e[5],h=e[6],p=e[8],S=e[9],M=e[10],y=e[12],B=e[13],g=e[14];let l=0,c=0;for(let m=0;m0){const p=1/Math.sqrt(h);t[i]=p*o,t[i+1]=p*f,t[i+2]=p*a}u+=r,i+=e}}function T(t,n,e){const r=Math.min(t.count,n.count),d=t.typedBuffer,u=t.typedBufferStride,i=n.typedBuffer,s=n.typedBufferStride;let o=0,f=0;for(let a=0;a>e,d[f+1]=i[o+1]>>e,d[f+2]=i[o+2]>>e,o+=s,f+=u}Object.freeze(Object.defineProperty({__proto__:null,normalize:O,normalizeView:R,scale:j,scaleView:P,shiftRight:T,transformMat3:_,transformMat3View:L,transformMat4:V,transformMat4View:x},Symbol.toStringTag,{value:"Module"}));export{z as e,L as f,R as i,_ as n,P as o,V as r,O as s,x as t,j as u};