0

docs: illustration of quadtree paths

This commit is contained in:
Andrew Brown
2011-11-06 09:38:19 -05:00
parent c460b0747d
commit 13bca41192
3 changed files with 1567 additions and 0 deletions

View File

@@ -547,6 +547,20 @@ absolute position 136.
So this example requires zoom level 8 (at least in the horizontal direction.
The vertical direction must also be checked).
Quadtree Paths
--------------
To illustrate the relationship between tile col,row addresses and their path,
consider these 16 tiles from a depth 2 quadtree:
.. image:: quadtree/depth2addresses.png
:alt: Addresses and paths for 16 tiles in a depth 2 tree
The top address in each tile is the col,row address, where the chunk outlined in
green in the center is at 0,0. The lower address in each tile is the path. The
first number indicates which quadrant the tile is in overall, and the second is
which quadrant within the first one.
get_range_by_path
-----------------
.. Explain the quadtree.QuadtreeGen._get_range_by_path method

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 68 KiB