File shuffle.

This commit is contained in:
Tim Schaub
2012-06-19 09:45:08 +02:00
parent f24b518f61
commit bd6b52c2cd
3 changed files with 0 additions and 0 deletions
+115
View File
@@ -0,0 +1,115 @@
goog.provide('ol.Location');
goog.require('ol.Projection');
/**
* @constructor
* @param {number} x X.
* @param {number} y Y.
* @param {number=} opt_z Z.
* @param {ol.Projection=} opt_projection Projection.
*/
ol.Location = function(x, y, opt_z, opt_projection) {
/**
* @private
* @type {number}
*/
this.x_ = x;
/**
* @private
* @type {number}
*/
this.y_ = y;
/**
* @private
* @type {number|undefined}
*/
this.z_ = opt_z;
/**
* @private
* @type {ol.Projection|undefined}
*/
this.projection_ = opt_projection;
};
/**
* @return {ol.Projection|undefined} Projection.
*/
ol.Location.prototype.getProjection = function() {
return this.projection_;
};
/**
* @return {number} X.
*/
ol.Location.prototype.getX = function() {
return this.x_;
};
/**
* @return {number} Y.
*/
ol.Location.prototype.getY = function() {
return this.y_;
};
/**
* @return {number|undefined} Z.
*/
ol.Location.prototype.getZ = function() {
return this.z_;
};
/**
* @param {ol.Projection|undefined} projection Projection.
* @return {ol.Location} This.
*/
ol.Location.prototype.setProjection = function(projection) {
this.projection_ = projection;
return this;
};
/**
* @param {number} x X.
* @return {ol.Location} This.
*/
ol.Location.prototype.setX = function(x) {
this.x_ = x;
return this;
};
/**
* @param {number} y Y.
* @return {ol.Location} This.
*/
ol.Location.prototype.setY = function(y) {
this.y_ = y;
return this;
};
/**
* @param {number|undefined} z Z.
* @return {ol.Location} This.
*/
ol.Location.prototype.setZ = function(z) {
this.z_ = z;
return this;
};