Documentation ¶
Index ¶
- type Grid
- func (g Grid[T]) Adjacent(x, y int) []*T
- func (g Grid[T]) Diagonal(x, y int) []*T
- func (g Grid[T]) Find(f func(T) bool) *T
- func (g Grid[T]) Get(x, y int) *T
- func (g Grid[T]) InRange(x1, y1, x2, y2 int) (s []*T)
- func (g Grid[T]) Set(x, y int, cell T)
- func (g Grid[T]) Surrounding(x, y int) []*T
- func (g Grid[T]) XRange() (x1, x2 int)
- func (g Grid[T]) YRange() (y1, y2 int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.