Documentation ¶
Index ¶
- Constants
- type RTree
- func (tr *RTree) Bounds() (min, max []float64)
- func (tr *RTree) Count() int
- func (tr *RTree) Delete(min, max []float64, value interface{})
- func (tr *RTree) Insert(min, max []float64, value interface{})
- func (tr *RTree) Nearby(min, max []float64, iter func(min, max []float64, item interface{}) bool)
- func (tr *RTree) Scan(iter func(min, max []float64, value interface{}) bool)
- func (tr *RTree) Search(min, max []float64, iter func(min, max []float64, value interface{}) bool)
- func (tr *RTree) TotalOverlapArea() float64
- func (tr *RTree) Traverse(iter func(min, max []float64, height, level int, value interface{}) int)
Constants ¶
View Source
const ( // Continue to first child box and/or next sibling. Continue = iota // Ignore child boxes but continue to next sibling. Ignore // Stop iterating Stop )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RTree ¶
type RTree struct {
// contains filtered or unexported fields
}
RTree ...
func (*RTree) Nearby ¶
Nearby returns items nearest to farthest. The dist param is the "box distance".
Click to show internal directories.
Click to hide internal directories.