/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{getMetersPerUnitForSR as e}from"../../../core/units.js";import r from"../../../geometry/Extent.js";import{getWebMercatorScalingFactor as t}from"../../../layers/orientedImagery/transformations/utils.js";function n(n,o){const{x:i,y:m,spatialReference:a}=n,s=o*t(m,a)/e(a);return new r({xmin:i-s,xmax:i+s,ymin:m-s,ymax:m+s,spatialReference:n.spatialReference})}export{n as createExtentAroundPoint};
