Documentation ¶
Index ¶
- type FlexItem
- type Index
- func (ix *Index) Bounds() (MinX, MinY, MaxX, MaxY float64)
- func (ix *Index) Count() int
- func (ix *Index) Insert(item Item)
- func (ix *Index) KNN(x, y float64, iterator func(item interface{}) bool) bool
- func (ix *Index) Remove(item Item)
- func (ix *Index) RemoveAll()
- func (ix *Index) Search(minX, minY, maxX, maxY float64, iterator func(item interface{}) bool) bool
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlexItem ¶
type FlexItem struct {
MinX, MinY, MaxX, MaxY float64
}
FlexItem can represent a point or a rectangle
Click to show internal directories.
Click to hide internal directories.