intersect

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 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 Inbound

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

func NewInbound

func NewInbound(pt *Point) *Inbound

func (*Inbound) GoString

func (ib *Inbound) GoString() string

func (*Inbound) Next

func (ib *Inbound) Next() (nib *Inbound)

func (*Inbound) Walk

func (ib *Inbound) Walk(fn func(idx int, pt maths.Pt) bool)

type Intersect

type Intersect struct {
	list.List
}

func New

func New() *Intersect

func (*Intersect) FirstInboundPtWalker

func (i *Intersect) FirstInboundPtWalker() *Inbound

func (*Intersect) ForEach

func (i *Intersect) ForEach(fn func(*Point) bool)

type Point

type Point struct {
	ptList.Pt

	Inward bool
	// contains filtered or unexported fields
}

func NewPoint

func NewPoint(x, y float64, inward bool) *Point

func NewPt

func NewPt(pt maths.Pt, inward bool) *Point

func (*Point) AsRegionPoint

func (p *Point) AsRegionPoint() *RegionPoint

func (*Point) AsSubjectPoint

func (p *Point) AsSubjectPoint() *SubjectPoint

func (*Point) NextWalk

func (p *Point) NextWalk() list.Elementer

func (*Point) PrintNeighbors

func (p *Point) PrintNeighbors()

func (*Point) String

func (p *Point) String() string

type RegionPoint

type RegionPoint Point

RegionPoint causes an intersect point to "act" like a region point so that it can be inserted into a region list.

func (*RegionPoint) AsIntersectPoint

func (i *RegionPoint) AsIntersectPoint() *Point

func (*RegionPoint) AsSubjectPoint

func (i *RegionPoint) AsSubjectPoint() *SubjectPoint

func (*RegionPoint) GoString

func (i *RegionPoint) GoString() string

func (*RegionPoint) List

func (i *RegionPoint) List() *list.List

func (*RegionPoint) Next

func (i *RegionPoint) Next() list.Elementer

func (*RegionPoint) Point

func (i *RegionPoint) Point() maths.Pt

func (*RegionPoint) SetList

func (i *RegionPoint) SetList(l *list.List) *list.List

func (*RegionPoint) SetNext

func (i *RegionPoint) SetNext(e list.Elementer) list.Elementer

type SubjectPoint

type SubjectPoint Point

SubjectPoing causes an intersect point to "act" like a subject point so that it can be inserted into a subject list.

func (*SubjectPoint) AsIntersectPoint

func (i *SubjectPoint) AsIntersectPoint() *Point

func (*SubjectPoint) AsRegionPoint

func (i *SubjectPoint) AsRegionPoint() *RegionPoint

func (*SubjectPoint) GoString

func (i *SubjectPoint) GoString() string

func (*SubjectPoint) List

func (i *SubjectPoint) List() *list.List

func (*SubjectPoint) Next

func (i *SubjectPoint) Next() list.Elementer

func (*SubjectPoint) Point

func (i *SubjectPoint) Point() maths.Pt

func (*SubjectPoint) SetList

func (i *SubjectPoint) SetList(l *list.List) *list.List

func (*SubjectPoint) SetNext

func (i *SubjectPoint) SetNext(e list.Elementer) list.Elementer

Jump to

Keyboard shortcuts

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