lib/quadtree/quadtree.rb in quadtree-1.0.1 vs lib/quadtree/quadtree.rb in quadtree-1.0.2
- old
+ new
@@ -45,13 +45,13 @@
@points << point
return true
end
subdivide! if @north_west.nil?
- return true if @north_west.insert(point)
- return true if @north_east.insert(point)
- return true if @south_west.insert(point)
- return true if @south_east.insert(point)
+ return true if @north_west.insert!(point)
+ return true if @north_east.insert!(point)
+ return true if @south_west.insert!(point)
+ return true if @south_east.insert!(point)
false
end
# Finds all points contained within a range.