Versions in this module Expand all Collapse all v0 v0.1.2 Feb 8, 2021 Changes in this version + type Item interface + Rect func(ctx interface{}) (min []float64, max []float64) + type Iterator func(item Item) bool + type RTree struct + 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)