/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as o,subclass as m}from"../../../../../core/accessorSupport/decorators.js";import{copy as e,normalize as r,cross as s}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as i}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{MomentumController as n}from"./MomentumController.js";import{applyRotationWithTwoAxes as a}from"../../utils/navigationUtils.js";const c=i(),l=i();let u=class extends n{constructor(t){super(t),this.interactionType=4}momentumStep(t,o){const m=this.momentum.value1(t),i=this.momentum.value2(t);e(l,o.eye),r(l,l),s(this.momentum.axis2,l,this.momentum.axis1),a(o,c,this.momentum.axis1,m,this.momentum.axis2,i)}};t([o({constructOnly:!0})],u.prototype,"momentum",void 0),u=t([m("esri.views.3d.state.controllers.momentum.PanSphericalMomentumController")],u);export{u as PanSphericalMomentumController};
