lib/terraformer/geometry/class_methods.rb in terraformer-0.1.0 vs lib/terraformer/geometry/class_methods.rb in terraformer-0.2.0

- old
+ new

@@ -4,9 +4,13 @@ # geometric "helpers" # module ClassMethods def coordinates_contain_point? coordinates, point + if Terraformer::Coordinate === coordinates + return coordinates == point + end + contains = false i = -1 l = coordinates.length j = l - 1 loop do