/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{createScreenPoint as e,createScreenPointArray as r}from"../../../core/screenUtils.js";import{create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{makeDehydratedPoint as o}from"../../../layers/graphics/dehydratedPoint.js";import{vectorToRender as i}from"../../3d/interactive/support/viewUtils.js";function s(r,t,o,s){return"2d"===s.type?(c.x=r[0],c.y=r[1],c.spatialReference=t,s.toScreen(c)):(i(r,t,o,s,a),s.state.camera.projectToScreen(a,n),e(n[0],n[1]))}const c=o(0,0,0,null),a=t(),n=r();export{s as vectorToScreenPoint};
