summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-11 12:49:48 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-11 12:49:48 -0400
commit9dbdaeafa0a9f72ff2d55aa5cafbed664861f8a3 (patch)
tree3b422634f2e0948ebbfe18bb628da5081c2fbc37 /main.c
parent55cbffbb81ae36da9b46398214c98fffb283fac7 (diff)
downloadkd-forest-9dbdaeafa0a9f72ff2d55aa5cafbed664861f8a3.tar.xz
Document the star pattern better.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3060831..b78ddf7 100644
--- a/main.c
+++ b/main.c
@@ -68,7 +68,10 @@ try_neighbor(kd_node_t *node, int dx, int dy)
return node + (int)WIDTH*dy + dx;
}
-// Star pattern
+// Star pattern:
+// 6 1 4
+// 3 7
+// 0 5 2
static int neighbor_order[][2] = {
{ -1, -1 },
{ 0, +1 },