array2d

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array2D

type Array2D struct {
	// contains filtered or unexported fields
}

func NewArray2D

func NewArray2D(width int, height int, defaultValue int) *Array2D

func (*Array2D) GetData

func (a2d *Array2D) GetData() []int

func (*Array2D) GetIndex

func (a2d *Array2D) GetIndex(col int, row int) int

func (*Array2D) GetValue

func (a2d *Array2D) GetValue(col int, row int) int

func (*Array2D) GetValueByIndex

func (a2d *Array2D) GetValueByIndex(index int) int

func (*Array2D) SetValue

func (a2d *Array2D) SetValue(col int, row int, value int)

Jump to

Keyboard shortcuts

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