/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as o,subclass as e}from"../../../../../core/accessorSupport/decorators.js";import{clone as r}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{wrapAxisAngle as s}from"../../../../../geometry/support/axisAngle.js";import{MomentumController as i}from"./MomentumController.js";import{applyRotation as m}from"../../utils/navigationUtils.js";let n=class extends i{constructor(t){super(t),this.interactionType=2}momentumStep(t,o){const e=this.momentum.value(t);m(o,this.center,s(this.axis,e))}set center(t){this._set("center",r(t))}set axis(t){this._set("axis",r(t))}};t([o({constructOnly:!0})],n.prototype,"center",null),t([o({constructOnly:!0})],n.prototype,"axis",null),t([o({constructOnly:!0})],n.prototype,"momentum",void 0),n=t([e("esri.views.3d.state.controllers.momentum.RotationMomentumController")],n);export{n as RotationMomentumController};
