/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{fromValues as t}from"../../../core/libs/gl-matrix-2/factories/mat3f64.js";import{rotate as r}from"../../../core/libs/gl-matrix-2/math/vec2.js";import{transformEllipticArc as o}from"./ellipticArc7Utils.js";function c(r,c,i,n){const[s,a,m,e,f,l,p]=c.a,u=f??0,h=l??Math.hypot(s[0]-a[0],s[1]-a[1]),b=p??1,j=Math.cos(n),x=Math.sin(n),[M,g]=i,v=t(j,x,0,-x,j,0,M-j*M+x*g,g-x*M-j*g,1);return o(r,{a:[s,a,m,e,u,h,b]},v)}function i(t,o,c){const[i,n,s]=t.b,a=[...i],m=[...n],e=[...s];return r(a,a,o,c),r(m,m,o,c),r(e,e,o,c),{b:[a,m,e]}}function n(t,o,c){const[i,n]=t.c,s=[...i],a=[...n];return r(s,s,o,c),r(a,a,o,c),{c:[s,a]}}export{i as rotateBezier,n as rotateCircularArc,c as rotateEllipticArc};
