Documentation ¶ Index ¶ type Item type Iterator type RTree func New(ctx interface{}) *RTree func (tr *RTree) Count() int func (tr *RTree) Insert(item Item) func (tr *RTree) KNN(bounds Item, center bool, iter func(item Item, dist float64) bool) func (tr *RTree) Remove(item Item) func (tr *RTree) Reset() func (tr *RTree) Search(bounds Item, iter Iterator) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Item ¶ type Item interface { Rect(ctx interface{}) (min []float64, max []float64) } type Iterator ¶ type Iterator func(item Item) bool type RTree ¶ type RTree struct { // contains filtered or unexported fields } func New ¶ func New(ctx interface{}) *RTree func (*RTree) Count ¶ func (tr *RTree) Count() int func (*RTree) Insert ¶ func (tr *RTree) Insert(item Item) func (*RTree) KNN ¶ func (tr *RTree) KNN(bounds Item, center bool, iter func(item Item, dist float64) bool) func (*RTree) Remove ¶ func (tr *RTree) Remove(item Item) func (*RTree) Reset ¶ func (tr *RTree) Reset() func (*RTree) Search ¶ func (tr *RTree) Search(bounds Item, iter Iterator) Source Files ¶ View all Source files rtree.go Directories ¶ Show internal Expand all Path Synopsis base Click to show internal directories. Click to hide internal directories.