/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{createRenderScreenPointArray as r}from"../../../../core/screenUtils.js";import{subtract as o,normalize as e}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{copy as t}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getConvertedElevationFromVector as c}from"../../../../support/elevationInfoUtils.js";function s(r,t,n,c){const s=n.projectToRenderScreen(r,m),i=n.projectToRenderScreen(t,p);return null==s||null==i?null:(o(c,i,s),e(c,c),c)}function i(r,o,e,s,i=n()){const m=t(l,r);return m[2]=c(s,m,o,e)||0,s.renderCoordsHelper.toRenderCoords(m,o,i),i}const l=n(),m=r(),p=r();export{s as renderScreenSpaceTangent,i as vectorToRender};
