spacetimeid 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/space_time_id.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93090963880cbbf02e25a5296c4456bd2637c0e4
|
4
|
+
data.tar.gz: bbb8634e5b39dc4e5e1f302cdff8c0feb51acef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8031c66c95bd89eb0048813ad0cc75339549be400529c6126242ebbfa91641f9377d6c221d18250d29b1a9b41129eb234cce33eb3b8be963af65c2fa142fe352
|
7
|
+
data.tar.gz: 123ae0bed81d9881bc1650ed97068a2b60803dd06a3ecd92f5e047471cbcddb45a17f33407adf6c5e076d29ceae8d86df6981ffc8432596d6687d93dfaa63fb7
|
data/README.md
CHANGED
data/lib/space_time_id.rb
CHANGED
@@ -251,8 +251,16 @@ class SpaceTimeId
|
|
251
251
|
xy_parent.xy_children if xy?
|
252
252
|
end
|
253
253
|
|
254
|
+
def xy_box
|
255
|
+
[xy, [next_x, next_y]] if xy?
|
256
|
+
end
|
257
|
+
|
254
258
|
def xy_four_corners
|
255
|
-
[xy, [next_x, y], [next_x, next_y], [x, next_y]
|
259
|
+
[xy, [next_x, y], [next_x, next_y], [x, next_y]] if xy?
|
260
|
+
end
|
261
|
+
|
262
|
+
def xy_boundary
|
263
|
+
xy_four_corners << xy if xy?
|
256
264
|
end
|
257
265
|
|
258
266
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|