/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{createScreenPointArray as e,createScreenPoint 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(e,t,o,s){return"2d"===s.type?(c.x=e[0],c.y=e[1],c.spatialReference=t,s.toScreen(c)):(i(e,t,o,s,a),s.state.camera.projectToScreen(a,n),r(n[0],n[1]))}const c=o(0,0,0,null),a=t(),n=e();export{s as vectorToScreenPoint};
