/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{isValidIntersectorResult as e}from"../webgl-engine/lib/IntersectorResult.js";import{Graphic3DTarget as t}from"../webgl-engine/lib/IntersectorTarget.js";function r(t){return e(t)&&7===t.intersector&&!!t.target}function n(t,r){if(!e(r)||!r.target||!("layerViewUid"in r.target))return!1;const n=r.target.layerViewUid,i=t.allLayerViews.find(e=>e.uid===n);switch(i?.layer.type){case"integrated-mesh":case"integrated-mesh-3dtiles":return!0}return!1}class i extends t{constructor(e,t,r){super(e,t),this.triangleNr=r}}function s(t){return e(t)&&5===t.intersector&&!!t.target}export{i as OverlayTarget,n as isIntegratedMeshIntersectorResult,s as isOverlayIntersectorResult,r as isTerrainIntersectorResult};
