define(["exports","./Cartesian2-bd414876","./Check-741c5f3c","./defaultValue-81eec7ed","./GeographicProjection-c931c7fb","./Math-e73894ab","./Rectangle-cf3e0e3e"],(function(e,t,i,n,o,s,r){"use strict";function l(e){e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT),this._ellipsoid=n.defaultValue(e.ellipsoid,t.Ellipsoid.WGS84),this._rectangle=n.defaultValue(e.rectangle,r.Rectangle.MAX_VALUE),this._projection=new o.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=n.defaultValue(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=n.defaultValue(e.numberOfLevelZeroTilesY,1)}Object.defineProperties(l.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),l.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<=u&&(f=u-1);let p=(l.north-e.latitude)/c|0;return p>=a&&(p=a-1),n.defined(o)?(o.x=f,o.y=p,o):new t.Cartesian2(f,p)},e.GeographicTilingScheme=l}));