mat

package
v0.0.0-...-3c753f8 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

matrix walker

┌──────────────────────┐ │ │ │ │ │ │ │ │ │ │ └──────┐ │ │ │ │ │ │ │ │ └───────┐ │ │ │ │ │ ┌───────┘ │ │ │ │ │ ▼───────► │ │ │ └──────────────────────┘

Index

Constants

This section is empty.

Variables

View Source
var (
	Left  [2]int = [2]int{0, -1}
	Right [2]int = [2]int{0, 1}
	Up    [2]int = [2]int{-1, 0}
	Down  [2]int = [2]int{1, 0}
)

Functions

This section is empty.

Types

type Matris

type Matris [][]heltal

func (Matris) Add

func (m Matris) Add(rad, kolumn, tal int)

func (Matris) Get

func (m Matris) Get(rad, kolumn int) int

func (Matris) GetCursorPos

func (m Matris) GetCursorPos() (rad, kolumn int)

func (Matris) GetDirectionValue

func (m Matris) GetDirectionValue(Direction [2]int, Moves int) (ret []int)

func (Matris) GoString

func (m Matris) GoString() string

func (Matris) MoveCurser

func (m Matris) MoveCurser(Direction [2]int, Moves int)

func (Matris) New

func (m Matris) New(storlek int) *Matris

func (Matris) SetCursorPos

func (m Matris) SetCursorPos(rad, kolumn int)

func (Matris) String

func (m Matris) String() string

Jump to

Keyboard shortcuts

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