/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
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{d as t}from"../../../../chunks/vec32.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{getConvertedElevationFromVector as s}from"../../../../support/elevationInfoUtils.js";function c(r,t,n,s){const c=n.projectToRenderScreen(r,m),i=n.projectToRenderScreen(t,p);return null==c||null==i?null:(o(s,i,c),e(s,s),s)}function i(r,o,e,c,i=n()){const m=t(l,r);return m[2]=s(c,m,o,e)||0,c.renderCoordsHelper.toRenderCoords(m,o,i),i}const l=n(),m=r(),p=r();export{c as renderScreenSpaceTangent,i as vectorToRender};
