/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../core/maybe","../../../chunks/vec3f64","../../../geometry/projection"],(function(n,e,l,u){"use strict";function i(n,l,i){if(e.isNone(n)||e.isNone(i))return!1;let m=!0;return t[0]=null!=n.xmin?n.xmin:0,t[1]=null!=n.ymin?n.ymin:0,t[2]=null!=n.zmin?n.zmin:0,m=m&&u.projectBuffer(t,n.spatialReference,0,l,i,0,1),t[0]=null!=n.xmax?n.xmax:0,t[1]=null!=n.ymax?n.ymax:0,t[2]=null!=n.zmax?n.zmax:0,m=m&&u.projectBuffer(t,n.spatialReference,0,l,i,3,1),null==n.xmin&&(l[0]=-1/0),null==n.ymin&&(l[1]=-1/0),null==n.zmin&&(l[2]=-1/0),null==n.xmax&&(l[3]=1/0),null==n.ymax&&(l[4]=1/0),null==n.zmax&&(l[5]=1/0),m}function m(n,l,i){if(e.isNone(n)||e.isNone(i))return!1;let m=!0;return t[0]=null!=n.xmin?n.xmin:0,t[1]=null!=n.ymin?n.ymin:0,t[2]=null!=n.zmin?n.zmin:0,m=m&&u.projectBuffer(t,n.spatialReference,0,t,i,0,1),l[0]=t[0],l[1]=t[1],t[0]=null!=n.xmax?n.xmax:0,t[1]=null!=n.ymax?n.ymax:0,t[2]=null!=n.zmax?n.zmax:0,m=m&&u.projectBuffer(t,n.spatialReference,0,t,i,0,1),l[2]=t[0],l[3]=t[1],null==n.xmin&&(l[0]=-1/0),null==n.ymin&&(l[1]=-1/0),null==n.xmax&&(l[2]=1/0),null==n.ymax&&(l[3]=1/0),m}const t=l.create();n.projectToBoundingBox=i,n.toBoundingRect=m,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
