lib/terraformer/convex_hull.rb in terraformer-0.1.0 vs lib/terraformer/convex_hull.rb in terraformer-0.2.0

- old
+ new

@@ -30,10 +30,12 @@ private def flatten_coordinates_from points cs = [] - points.each_coordinate {|c| cs << c} + Geometry.iter_coordinate points, :each do |c| + cs << c + end cs.sort!.uniq! cs end # http://tixxit.wordpress.com/2009/12/09/jarvis-march/