lib/terraformer/geometry/class_methods.rb in terraformer-0.0.4 vs lib/terraformer/geometry/class_methods.rb in terraformer-0.0.6

- old
+ new

@@ -46,13 +46,13 @@ b.each_cons(2) do |b1, b2| return true if edge_intersects_edge?(a1, a2, b1, b2) end end when b[0].class == Array - b.each {|e| return true if intersects = arrays_intersect_arrays?(a, e)} + b.each {|e| return true if arrays_intersect_arrays?(a, e)} end when a[0].class == Array - a.each {|e| return true if intersects = arrays_intersect_arrays?(e, b)} + a.each {|e| return true if arrays_intersect_arrays?(e, b)} end false end def line_contains_point? line, point