Add ol.Extent

This commit is contained in:
Tom Payne
2012-07-05 16:02:47 +02:00
committed by Tom Payne
parent 8014f68719
commit afb37035dc
2 changed files with 29 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ goog.provide('ol');
goog.require('ol.Bounds');
goog.require('ol.Camera');
goog.require('ol.Extent');
goog.require('ol.MVCArray');
goog.require('ol.MVCObject');
goog.require('ol.TileBounds');

28
src/ol/extent.js Normal file
View File

@@ -0,0 +1,28 @@
goog.provide('ol.Extent');
goog.require('goog.math.Box');
/**
* @constructor
* @extends {goog.math.Box}
* @param {number} top Top.
* @param {number} right Right.
* @param {number} bottom Bottom.
* @param {number} left Left.
*/
ol.Extent = function(top, right, bottom, left) {
goog.base(this, top, right, bottom, left);
};
goog.inherits(ol.Extent, goog.math.Box);
/**
* @return {ol.Extent} Extent.
*/
ol.Extent.prototype.clone = function() {
return new ol.Extent(this.top, this.right, this.bottom, this.left);
};