/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,t="screenUtils.toPt: input not recognized!",r=96;function u(n){return n?n/72*r:0}function e(n){return n?72*n/r:0}function o(r){if("string"==typeof r){const u=r.match(n);if(u){const n=Number(u[1]),t=u[3]&&u[3].toLowerCase(),o=r.startsWith("-"),i="px"===t?e(n):n;return o?-i:i}return console.warn(t),null}return r}function i(n=0,t=0){return{x:n,y:t}}function c(n){return n?i(n.x,n.y):null}function f(n=0,t=0){return[n,t]}function s(n=0,t=0){return{x:n,y:t}}function x(n=0,t=0){return l([n,t])}function y(n=0,t=0,r=0){return p([n,t,r])}function l(n){return n}function p(n){return n}function a(n){return n}function d(n,t){return t?(t.x=n[0],t.y=n[1],t):{x:n[0],y:n[1]}}function g(n,t){return t?(t[0]=n.x,t[1]=n.y,t.length>2&&(t[2]=0),t):[n.x,n.y]}export{l as castRenderScreenPointArray,p as castRenderScreenPointArray3,a as castScreenPointArray,c as cloneScreenPoint,s as createRenderScreenPoint,x as createRenderScreenPointArray,y as createRenderScreenPointArray3,i as createScreenPoint,f as createScreenPointArray,u as pt2px,e as px2pt,d as screenPointArrayToObject,g as screenPointObjectToArray,o as toPt};
