/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{deg2rad as r,rad2deg as t}from"../../core/mathUtils.js";import{getRotation as n}from"../../core/libs/gl-matrix-2/math/mat4.js";import{setAxisAngle as o,multiply as i,getAxisAngle as u}from"../../core/libs/gl-matrix-2/math/quat.js";import{create as c}from"../../core/libs/gl-matrix-2/factories/quatf64.js";import{copy as e,cross as f,normalize as m,angle as a}from"../../core/libs/gl-matrix-2/math/vec3.js";import{UNIT_X as s,UNIT_Y as l,UNIT_Z as p}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";function g(r=B){return[r[0],r[1],r[2],r[3]]}function j(r,t,n,o){return h(r,t,n,o,E)}function x(r,t){return h(r[0],r[1],r[2],t,E)}function b(r,t=g()){return h(r[0],r[1],r[2],r[3],t)}function h(r,t,n,o,i=g()){return i[0]=r,i[1]=t,i[2]=n,i[3]=o,i}function q(r,t,n=g()){return e(k(n),r),n[3]=t,n}function v(r,t,n){return f(n,r,t),m(n,n),n[3]=-a(r,t),n}function y(r,o=g()){const i=n(C,r);return A(o,t(u(o,i))),o}function U(r,n,c=g()){return o(C,k(r),z(r)),o(D,k(n),z(n)),i(C,D,C),A(c,t(u(k(c),C)))}function d(r,t,n,o=g()){return q(s,r,F),q(l,t,G),q(p,n,H),U(F,G,F),U(F,H,o),o}function k(r){return r}function w(r){return r[3]}function z(t){return r(t[3])}function A(r,t){return r[3]=t,r}const B=[0,0,1,0],C=c(),D=c(),E=g(),F=g(),G=g(),H=g();export{w as angle,z as angleRad,k as axis,U as compose,d as composeAxes,b as copy,g as create,q as fromAxisAndAngle,y as fromMatrix,v as fromPoints,h as fromValues,A as setAngle,B as up,j as wrap,x as wrapAxisAngle};
