/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{create as r}from"../../core/libs/gl-matrix-2/factories/vec3f64.js";import{projectBuffer as o}from"./projectBuffer.js";import{copy as t}from"../support/aaBoundingRect.js";import{equals as e}from"../support/spatialReferenceUtils.js";function i(r,i,s,f){return null!=r&&(e(i,f)?(t(s,r),!0):(p[0]=r[0],p[1]=r[1],p[2]=0,!!o(p,i,0,p,f,0)&&(s[0]=p[0],s[1]=p[1],p[0]=r[2],p[1]=r[3],p[2]=0,!!o(p,i,0,p,f,0)&&(s[2]=p[0],s[3]=p[1],!0))))}const p=r();export{i as projectBoundingRect};
