Add ol.Extent
This commit is contained in:
28
src/ol/extent.js
Normal file
28
src/ol/extent.js
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user