Documentation ¶
Overview ¶
Package quadtree provides parallelizable functions for a linear quad tree.
Index ¶
- func Cap(lvl int) int
- func Cell(key uint32) (nx, ny, size float32)
- func Children(key uint32) (uint32, uint32, uint32, uint32)
- func Decode(key uint32) (x, y, level uint32)
- func IsLowerLeft(key uint32) bool
- func IsLowerRight(key uint32) bool
- func IsUpperLeft(key uint32) bool
- func IsUpperRight(key uint32) bool
- func Parent(key uint32) uint32
- func ProjectMercator(nx, ny float32, radius float32) (x, y, z float32)
- func Split(key uint32, lvl int, nodes *[]uint32)
- func Undilate(x uint32) uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLowerLeft ¶
IsLowerLeft determines if node represents the lower-left child of its parent.
func IsLowerRight ¶
IsLowerRight determines if node represents the lower-right child of its parent.
func IsUpperLeft ¶
IsUpperLeft determines if node represents the upper-left child of its parent.
func IsUpperRight ¶
IsUpperRight determines if node represents the upper-right child of its parent.
func ProjectMercator ¶
ProjectMercator converts normalized coordinates to mercator projection, just for fun.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.