quadtree 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.editorconfig +4 -1
- data/bitbucket-pipelines.yml +2 -1
- data/lib/quadtree/quadtree.rb +4 -4
- data/lib/quadtree/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78274ec810f20ddb345e5af2f239011c45bb493005acb132cacb1ca23146b463
|
|
4
|
+
data.tar.gz: cac53ba45cdb796ea599d820d2c8c8f9eee3a41b3f73f2d7ec3b0eedf0542e8a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fbebccb0db1cb2aff816ff0fb9dd2de44bdb8fce97f7f0abe25d158ea192b95639e80a2aee49734df8f08b0aa7717e0f2bb18dfad590e57f2b26105fed51298
|
|
7
|
+
data.tar.gz: 1d1107de6c8641e61f605c552aefb5b54bedaeabb0a3f4e644913a8f61846bd91079a5b2e20dafc8b14a45301b71c494eecf8288881b2a96cf2dc7541affd1bb
|
data/.editorconfig
CHANGED
data/bitbucket-pipelines.yml
CHANGED
data/lib/quadtree/quadtree.rb
CHANGED
|
@@ -47,10 +47,10 @@ module Quadtree
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
subdivide! if @north_west.nil?
|
|
50
|
-
return true if @north_west.insert(point)
|
|
51
|
-
return true if @north_east.insert(point)
|
|
52
|
-
return true if @south_west.insert(point)
|
|
53
|
-
return true if @south_east.insert(point)
|
|
50
|
+
return true if @north_west.insert!(point)
|
|
51
|
+
return true if @north_east.insert!(point)
|
|
52
|
+
return true if @south_west.insert!(point)
|
|
53
|
+
return true if @south_east.insert!(point)
|
|
54
54
|
|
|
55
55
|
false
|
|
56
56
|
end
|
data/lib/quadtree/version.rb
CHANGED