/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{canProjectWithoutEngine as r,initializeProjection as t}from"../projectionUtils.js";import o from"../SpatialReference.js";import{projectBuffer as e}from"./projectBuffer.js";import{projectPointToVector as n}from"./projectPointToVector.js";import{makeDehydratedPoint as i}from"../../layers/graphics/dehydratedPoint.js";function p(t,o,i,p){return!(null==o||null==p||t.length<2)&&(r(o,p)?e(t,o,0,i,p,0,1):(f.x=t[0],f.y=t[1],f.z=t[2],f.spatialReference=o,n(f,i,p)))}async function c(r,o,e,n,i){return await t(o,n,null,i),p(r,o,e,n)}const f=i(0,0,0,o.WGS84);export{p as projectVectorToVector,c as projectVectorToVectorAsync};
