Documentation ¶
Index ¶
- type Coords
- func (p *Coords[V]) Add(point orb.Pointer) error
- func (p *Coords[V]) Closest(x, y float64) V
- func (p *Coords[V]) Get(point orb.Pointer, fn quadtree.FilterFunc) V
- func (p *Coords[V]) Has(point orb.Pointer, fn quadtree.FilterFunc) bool
- func (p *Coords[V]) KNearest(point orb.Pointer, max int, fn quadtree.FilterFunc, maxDistance float64) []orb.Pointer
- func (p *Coords[V]) Remove(point orb.Pointer, fn quadtree.FilterFunc) bool
- func (p *Coords[V]) Replace(point orb.Pointer, fn quadtree.FilterFunc, equalFn CoordsEqualFn) error
- type CoordsEqualFn
- type CoordsRO
- func (p *CoordsRO[V]) Closest(x, y float64) V
- func (p *CoordsRO[V]) Get(point orb.Pointer, fn quadtree.FilterFunc) V
- func (p *CoordsRO[V]) Has(point orb.Pointer, fn quadtree.FilterFunc) bool
- func (p *CoordsRO[V]) KNearest(point orb.Pointer, max int, fn quadtree.FilterFunc, maxDistance float64) []orb.Pointer
- type ICoords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coords ¶
func (*Coords[V]) Replace ¶
func (p *Coords[V]) Replace(point orb.Pointer, fn quadtree.FilterFunc, equalFn CoordsEqualFn) error
type CoordsEqualFn ¶
CoordsEqualFn must return true if both points are equal
type ICoords ¶
type ICoords[V orb.Pointer] interface { Has(orb.Pointer, quadtree.FilterFunc) bool Get(orb.Pointer, quadtree.FilterFunc) V Add(orb.Pointer) error Remove(orb.Pointer, quadtree.FilterFunc) bool Replace(orb.Pointer, quadtree.FilterFunc) error Closest(float64, float64) V KNearest(orb.Pointer, int, quadtree.FilterFunc, float64) []orb.Pointer }
Click to show internal directories.
Click to hide internal directories.