/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.24/esri/copyright.txt for details. */ import{mathLogger as e}from"../geometry/support/buffer/math/common.js";function t(t,r,f){if(t.count!==r.count)return void e.error("source and destination buffers need to have the same number of elements");const o=t.count,n=f[0],u=f[1],d=f[2],s=f[3],c=f[4],i=f[5],a=f[6],p=f[7],y=f[8],B=f[9],m=f[10],l=f[11],S=f[12],h=f[13],b=f[14],M=f[15],v=t.typedBuffer,g=t.typedBufferStride,_=r.typedBuffer,j=r.typedBufferStride;for(let e=0;e0){const t=1/Math.sqrt(i);f[e]=t*r,f[e+1]=t*s,f[e+2]=t*c}}}function o(e,t,r){const f=Math.min(e.count,t.count),o=e.typedBuffer,n=e.typedBufferStride,u=t.typedBuffer,d=t.typedBufferStride;for(let s=0;s>r,o[e+1]=u[t+1]>>r,o[e+2]=u[t+2]>>r,o[e+3]=u[t+3]>>r}}const u=Object.freeze(Object.defineProperty({__proto__:null,transformMat4:t,transformMat3:r,normalize:f,scale:o,shiftRight:n},Symbol.toStringTag,{value:"Module"}));export{n as a,t as b,f as n,o as s,r as t,u as v};