diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-11 12:49:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-11 12:49:48 -0400 |
commit | 9dbdaeafa0a9f72ff2d55aa5cafbed664861f8a3 (patch) | |
tree | 3b422634f2e0948ebbfe18bb628da5081c2fbc37 | |
parent | 55cbffbb81ae36da9b46398214c98fffb283fac7 (diff) | |
download | kd-forest-9dbdaeafa0a9f72ff2d55aa5cafbed664861f8a3.tar.xz |
Document the star pattern better.
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 }, |