Documentation
¶
Index ¶
- type Config
- type Space
- func (w *Space) Expand(id uint64, aabb *plane.AABB[uint32], margin uint32)
- func (w *Space) Flush(onDirty func(geom.AABB[uint32]))
- func (w *Space) Insert(id uint64, aabb plane.AABB[uint32])
- func (w *Space) Query(aabb geom.AABB[uint32], fn func(uint64, plane.FragPosition)) int
- func (w *Space) Remove(id uint64)
- func (w *Space) Translate(id uint64, aabb *plane.AABB[uint32], delta geom.Vec[uint32])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package geom provides generic 2D geometry primitives shared across the GOK modules.
|
Package geom provides generic 2D geometry primitives shared across the GOK modules. |
|
Package plane defines 2D spaces (cartesian and torus) plus plane-aware boxes and metrics.
|
Package plane defines 2D spaces (cartesian and torus) plus plane-aware boxes and metrics. |
|
Package spatial provides a discrete spatial index over a 2D power-of-two grid for storing and querying objects by integer coordinates, with support for range queries (AABB) and bulk operations.
|
Package spatial provides a discrete spatial index over a 2D power-of-two grid for storing and querying objects by integer coordinates, with support for range queries (AABB) and bulk operations. |
Click to show internal directories.
Click to hide internal directories.
