code: function Polygon(input){
      if(input && input.type === "Polygon" && input.coordinates){
        extend(this, input);
      } else if(isArray(input)) {
        this.coordinates = input;
      } else {
        throw "Terraformer: invalid input for Terraformer.Polygon";
      }
  
      this.type = "Polygon";
    }
docs: /*
  GeoJSON Polygon Class
  new Polygon();
  new Polygon([ [[x,y], [x1,y1], [x2,y2]] ]);
  new Polygon({
  type: "Polygon",
  coordinates: [ [[x,y], [x1,y1], [x2,y2]] ]
  });