/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{makeArrayEquals as r}from"../../../../../core/arrayUtils.js";import{clamp as t}from"../../../../../core/mathUtils.js";import{ScreenSizePerspectiveEvaluator as e}from"../../lib/screenSizePerspectiveUtils.js";function i(r,e,i,n,o,l){let a=i.screenLength*r.pixelRatio;null!=o&&(s.update(n,e,o,l),a=s.apply(a));const c=a*Math.tan(.5*r.fovY)/(.5*r.fullHeight);return t(c*e,i.minWorldLength,i.maxWorldLength)}const n=r();function o(r,t){let e=!1;for(const i in t){const o=t[i];void 0!==o&&(Array.isArray(o)?Array.isArray(r[i])&&n(o,r[i])||(r[i]=o.slice(),e=!0):r[i]!==o&&(e=!0,r[i]=o))}return e}const l={multiply:1,ignore:2,replace:3,tint:4},s=new e;export{l as colorMixModes,o as updateParameters,i as verticalOffsetAtDistance};
