/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
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{d as e,f,n as s,k as m}from"../../chunks/vec32.js";import{UNIT_X as a,UNIT_Y as l,UNIT_Z as p}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";function j(r=B){return[r[0],r[1],r[2],r[3]]}function x(r,t,n,o){return h(r,t,n,o,E)}function b(r,t){return h(r[0],r[1],r[2],t,E)}function g(r,t=j()){return h(r[0],r[1],r[2],r[3],t)}function h(r,t,n,o,i=j()){return i[0]=r,i[1]=t,i[2]=n,i[3]=o,i}function k(r,t,n=j()){return e(w(n),r),n[3]=t,n}function q(r,t,n){return f(n,r,t),s(n,n),n[3]=-m(r,t),n}function v(r,o=j()){const i=n(C,r);return A(o,t(u(o,i))),o}function d(r,n,c=j()){return o(C,w(r),z(r)),o(D,w(n),z(n)),i(C,D,C),A(c,t(u(w(c),C)))}function U(r,t,n,o=j()){return k(a,r,F),k(l,t,G),k(p,n,H),d(F,G,F),d(F,H,o),o}function w(r){return r}function y(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=j(),F=j(),G=j(),H=j();export{y as angle,z as angleRad,w as axis,d as compose,U as composeAxes,g as copy,j as create,k as fromAxisAndAngle,v as fromMatrix,q as fromPoints,h as fromValues,A as setAngle,B as up,x as wrap,b as wrapAxisAngle};
