/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import{property as o,subclass as m}from"../../../../../core/accessorSupport/decorators.js";import{d as s,n as e,f as r}from"../../../../../chunks/vec32.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(),u=i();let l=class extends n{constructor(t){super(t),this.interactionType=4}momentumStep(t,o){const m=this.momentum.value1(t),i=this.momentum.value2(t);s(u,o.eye),e(u,u),r(this.momentum.axis2,u,this.momentum.axis1),a(o,c,this.momentum.axis1,m,this.momentum.axis2,i)}};t([o({constructOnly:!0})],l.prototype,"momentum",void 0),l=t([m("esri.views.3d.state.controllers.momentum.PanSphericalMomentumController")],l);export{l as PanSphericalMomentumController};
