/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
function n(n,t){const o=n[t],c=n[t+1],u=n[t+2];return Math.sqrt(o*o+c*c+u*u)}function t(n,t){const o=n[t],c=n[t+1],u=n[t+2],f=1/Math.sqrt(o*o+c*c+u*u);n[t]*=f,n[t+1]*=f,n[t+2]*=f}function o(n,t,o){n[t]*=o,n[t+1]*=o,n[t+2]*=o}function c(n,t,o,c,u,f=t){(u=u||n)[f]=n[t]+o[c],u[f+1]=n[t+1]+o[c+1],u[f+2]=n[t+2]+o[c+2]}function u(n,t,o,c,u,f=t){(u=u||n)[f]=n[t]-o[c],u[f+1]=n[t+1]-o[c+1],u[f+2]=n[t+2]-o[c+2]}export{c as add,n as length,t as normalize,o as scale,u as subtract};
