Documentation
¶
Index ¶
- Variables
- type Plane
- func (p Plane[T]) All() [][]T
- func (p *Plane[T]) Col(x int) []T
- func (p Plane[T]) Get(x, y int) T
- func (p Plane[T]) Has(x, y int) bool
- func (p *Plane[T]) Height() int
- func (p *Plane[T]) Row(y int) []T
- func (p *Plane[T]) Set(x, y int, item T)
- func (p Plane[T]) Sparse() map[int]map[int]T
- func (p *Plane[T]) Width() int
- type Point
- type UnitVector
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnitVectorNorth = UnitVector{Point{0, -1}, 1} UnitVectorSouth = UnitVector{Point{0, 1}, 1} UnitVectorWest = UnitVector{Point{-1, 0}, 1} UnitVectorEast = UnitVector{Point{1, 0}, 1} )
Functions ¶
This section is empty.
Types ¶
type Point ¶
func (Point) Neighboring ¶
type UnitVector ¶
type UnitVector Vector
Click to show internal directories.
Click to hide internal directories.