lib/terraformer/polygon.rb in terraformer-0.0.9 vs lib/terraformer/polygon.rb in terraformer-0.1.0

- old
+ new

@@ -108,10 +108,10 @@ raise ArgumentError.new "unsupported type: #{obj.type rescue obj.class}" end end def add_vertex p - insert_vertex coordinates[0].length - 2, p + insert_vertex -2, p end alias_method :<<, :add_vertex def insert_vertex idx, p p = p.coordinates if Point === p