/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{create as e}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{canProjectWithoutEngine as r,tryProject as t,initializeProjection as o}from"../projectionUtils.js";import{projectBuffer as i}from"./projectBuffer.js";function n(e,o,n,c){if(r(e.spatialReference,n))return f[0]=e.x,f[1]=e.y,f[2]=e.z??0,i(f,e.spatialReference,0,o,n,0);const s=t(e,n,c);return!!s&&(o[0]=s.x,o[1]=s.y,o[2]=s.z??0,!0)}async function c(e,r,t,i){return await o(e.spatialReference,t,null,i),n(e,r,t)}const f=e();export{n as projectPointToVector,c as projectPointToVectorAsync};
