list

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elementer

type Elementer interface {
	list.Elementer
}

type ElementerPointer

type ElementerPointer interface {
	list.Elementer
	maths.Pointer
}

type List

type List struct {
	list.List
}

func New

func New() *List

func (*List) ForEachPt

func (l *List) ForEachPt(fn func(idx int, pt maths.Pt) (cont bool))

ForEachPt will iterate forward through the list, call the fn for each pt. If fn returns false, the iteration will stop.

func (*List) GoString

func (l *List) GoString() string

func (*List) PushInBetween

func (l *List) PushInBetween(start, end ElementerPointer, element ElementerPointer) (r bool)

type Pt

type Pt struct {
	maths.Pt
	list.Sentinel
}

func NewPoint

func NewPoint(x, y float64) *Pt

func NewPointSlice

func NewPointSlice(pts ...maths.Pt) (rpts []*Pt)

func NewPt

func NewPt(pt maths.Pt) *Pt

func (*Pt) GoString

func (p *Pt) GoString() string

func (*Pt) Point

func (p *Pt) Point() (pt maths.Pt)

func (*Pt) String

func (p *Pt) String() string

Jump to

Keyboard shortcuts

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