sparsegrid

package
v0.0.0-...-291aae9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL