Documentation ¶
Overview ¶
Package qtree implements a very simple QuadTree for spatial searching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuadTree ¶
type QuadTree struct {
// contains filtered or unexported fields
}
func New ¶
New returns a usable QuadTree with a capacity at each node of capacity. It covers the extent defined by xmin, xmax, ymin, ymax
func (*QuadTree) Insert ¶
Insert adds a point to the QuadTree. The point consists of an x, y coordinate and an id, which is assumed to be unique.
Click to show internal directories.
Click to hide internal directories.