path

package
v0.0.0-...-8fb85de Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimMismatchErr

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

func (DimMismatchErr) Error

func (err DimMismatchErr) Error() string

type Generator

type Generator interface {
	Set(index int, point point.Point) error
	Generate() (Path, error)
}

func NewGenerator

func NewGenerator(grid grd.Grid, dim int) Generator

type Path

type Path interface {
	Grid() grd.Grid
	Dim() int
	At(index int) (point.Point, error)
	Incr(from int, to int) (point.Point, error)
}

Jump to

Keyboard shortcuts

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