Add ol.Pixel

This commit is contained in:
Tom Payne
2012-07-29 12:12:44 +02:00
parent 6d83205c08
commit 10c85f3d07

24
src/ol/base/pixel.js Normal file
View File

@@ -0,0 +1,24 @@
goog.provide('ol.Pixel');
goog.require('goog.math.Coordinate');
/**
* @constructor
* @extends {goog.math.Coordinate}
* @param {number} x X.
* @param {number} y Y.
*/
ol.Pixel = function(x, y) {
goog.base(this, x, y);
};
goog.inherits(ol.Pixel, goog.math.Coordinate);
/**
* @return {ol.Pixel} Clone.
*/
ol.Pixel.prototype.clone = function() {
return new ol.Pixel(this.x, this.y);
};