/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/vec3"],(function(t,n){"use strict";function i(t,n){return 0!=(t&n)}function e(t,n,i,e,a,o){0!==t&&(i?(o.min=Math.min(o.min,n),o.max=Math.max(o.max,n)):null!=e?(o.min-=Math.max(0,(n-o.min)*(1-e)),o.max+=Math.max(0,(n-o.max)*(1-e))):a&&(o.min-=Math.max(0,n-o.min-a),o.max+=Math.max(0,n-o.max-a)))}var a,o,r;t.InteractionType=void 0,(a=t.InteractionType||(t.InteractionType={}))[a.NONE=0]="NONE",a[a.ZOOM=1]="ZOOM",a[a.TUMBLE=2]="TUMBLE",a[a.LOOK_AROUND=3]="LOOK_AROUND",a[a.PAN=4]="PAN",a[a.ASCEND=5]="ASCEND",t.ConstraintTypes=void 0,(o=t.ConstraintTypes||(t.ConstraintTypes={}))[o.NONE=0]="NONE",o[o.TILT=1]="TILT",o[o.ALTITUDE=2]="ALTITUDE",o[o.DISTANCE=4]="DISTANCE",o[o.COLLISION=8]="COLLISION",o[o.ALL=15]="ALL",o[o.ALL_EXCEPT_COLLISION=7]="ALL_EXCEPT_COLLISION",t.TiltMode=void 0,(r=t.TiltMode||(t.TiltMode={}))[r.TUMBLE=0]="TUMBLE",r[r.LOOK_AROUND=1]="LOOK_AROUND";const T={selection:t.ConstraintTypes.NONE,interactionType:t.InteractionType.NONE,interactionFactor:0,interactionStartCamera:null,interactionDirection:null,tiltMode:t.TiltMode.TUMBLE};function O(t,i,e,a){return i=i||t.viewForward,n.copy(a,i),n.scale(a,a,Math.sign(n.dot(i,e))),a}t.adjustRangeForInteraction=e,t.defaultApplyOptions=T,t.hasConstraintType=i,t.interactionDirectionTowardsConstraintMinimization=O,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
