Documentation
¶
Index ¶
- type QTree
- func (tr *QTree) Bounds() (min, max [2]float64)
- func (tr *QTree) Children(parent interface{}, reuse []child.Child) (children []child.Child)
- func (tr *QTree) Delete(min, max [2]float64, data interface{})
- func (tr *QTree) Insert(min [2]float64, max [2]float64, data interface{})
- func (tr *QTree) Len() int
- func (tr *QTree) Replace(oldMin, oldMax [2]float64, oldData interface{}, newMin, newMax [2]float64, ...)
- func (tr *QTree) Scan(iter func(min, max [2]float64, data interface{}) bool)
- func (tr *QTree) Search(min, max [2]float64, iter func(min, max [2]float64, data interface{}) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QTree ¶
type QTree struct {
// contains filtered or unexported fields
}
QTree ...
func (*QTree) Children ¶
Children returns all children for parent node. If parent node is nil then the root nodes should be returned. The reuse buffer is an empty length slice that can optionally be used to avoid extra allocations.
func (*QTree) Replace ¶
func (tr *QTree) Replace( oldMin, oldMax [2]float64, oldData interface{}, newMin, newMax [2]float64, newData interface{}, )
Replace an item in the structure. This is effectively just a Delete followed by an Insert. But for some structures it may be possible to optimize the operation to avoid multiple passes
Click to show internal directories.
Click to hide internal directories.