rtree

package
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL