threed

package
v0.0.0-...-09c6c35 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Adj = []*Pos{
		NewPos(-1, 0, 0),
		NewPos(1, 0, 0),
		NewPos(0, -1, 0),
		NewPos(0, 1, 0),
		NewPos(0, 0, -1),
		NewPos(0, 0, 1),
	}
)

Functions

This section is empty.

Types

type Pos

type Pos struct {
	X int
	Y int
	Z int
}

func NewPos

func NewPos(x, y, z int) *Pos

func ParsePos

func ParsePos(s string) *Pos

func (*Pos) Add

func (p *Pos) Add(o *Pos)

func (*Pos) Clone

func (p *Pos) Clone() *Pos

func (*Pos) Equals

func (p *Pos) Equals(o *Pos) bool

func (*Pos) Neighbors

func (p *Pos) Neighbors(f ValidFunc) []*Pos

func (*Pos) String

func (p *Pos) String() string

type ValidFunc

type ValidFunc func(p *Pos) bool

Jump to

Keyboard shortcuts

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