Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circle ¶
type Circle struct { Center vector.MutableVector Radius float64 }
type Quadtree ¶
type Quadtree[R Rectangler] struct { // contains filtered or unexported fields }
func NewQuadtree ¶
func NewQuadtree[R Rectangler](level int, bounds Rect) *Quadtree[R]
func (*Quadtree[R]) Retrieve ¶
func (qt *Quadtree[R]) Retrieve(rect Rectangler) []R
type Rect ¶
type Rect struct { Origin vector.MutableVector Width, Height float64 }
func (Rect) AlignedCollides ¶
type Rectangler ¶
type Rectangler interface {
Rect() Rect
}
Click to show internal directories.
Click to hide internal directories.