Commit 6671667e authored by Calvin Metcalf's avatar Calvin Metcalf
Browse files

point is done

parent 4a1ee418
Loading
Loading
Loading
Loading
+56 −59
Original line number Diff line number Diff line
@@ -10,11 +10,11 @@ proj4.Point = proj4.Class({
   * - z {float} the third component, optional.
   */
  initialize : function(x,y,z) {
      if (typeof x == 'object') {
    if (typeof x === 'object') {
      this.x = x[0];
      this.y = x[1];
      this.z = x[2] || 0.0;
      } else if (typeof x == 'string' && typeof y == 'undefined') {
    } else if (typeof x === 'string' && typeof y === 'undefined') {
      var coords = x.split(',');
      this.x = parseFloat(coords[0]);
      this.y = parseFloat(coords[1]);
@@ -25,7 +25,6 @@ proj4.Point = proj4.Class({
      this.z = z || 0.0;
    }
  },

  /**
   * APIMethod: clone
   * Build a copy of a proj4.Point object.
@@ -36,7 +35,6 @@ proj4.Point = proj4.Class({
  clone : function() {
    return new proj4.Point(this.x, this.y, this.z);
  },

    /**
   * APIMethod: toString
   * Return a readable string version of the point
@@ -48,7 +46,6 @@ proj4.Point = proj4.Class({
  toString : function() {
    return ("x=" + this.x + ",y=" + this.y);
  },

  /** 
   * APIMethod: toShortString
   * Return a short string version of the point.