Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SparseGrid ¶
type SparseGrid[T comparable] struct { // contains filtered or unexported fields }
func NewGrid ¶
func NewGrid[T comparable](empty T) *SparseGrid[T]
func (*SparseGrid[T]) Get ¶
func (g *SparseGrid[T]) Get(x, y int) T
func (*SparseGrid[T]) Set ¶
func (g *SparseGrid[T]) Set(x, y int, v T)
func (*SparseGrid[T]) SizeX ¶
func (g *SparseGrid[T]) SizeX() (int, int)
func (*SparseGrid[T]) SizeY ¶
func (g *SparseGrid[T]) SizeY() (int, int)
func (*SparseGrid[T]) StringWithFormatter ¶
func (g *SparseGrid[T]) StringWithFormatter(formatter func(T, int, int) string) string
func (*SparseGrid[T]) Visited ¶
func (g *SparseGrid[T]) Visited() int
Click to show internal directories.
Click to hide internal directories.