matrix

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoMatrix

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

AutoMatrix -- automatically growing matrix

func NewAutoMatrix

func NewAutoMatrix() *AutoMatrix

NewAutoMatrix creates a new auto-matrix

func (*AutoMatrix) Extract

func (matrix *AutoMatrix) Extract(x1, y1, x2, y2 int) []rune

Extract from (x1, y1) until (x2, y2)

func (*AutoMatrix) ExtractFrom

func (matrix *AutoMatrix) ExtractFrom(x1, y1 int) []rune

ExtractFrom extracts from (x1, y1) until the end

func (*AutoMatrix) SetAt

func (matrix *AutoMatrix) SetAt(value rune, x int, y int)

SetAt sets a value at (x, y) growing the matrix as necessary

Jump to

Keyboard shortcuts

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