Documentation ¶
Index ¶
- type Direction
- type Grid
- func (g *Grid[T]) Add(t T, r Rectangle) error
- func (g *Grid[T]) CanAddRectangle(r Rectangle) bool
- func (g *Grid[T]) ContainsPosition(p Position) bool
- func (g *Grid[T]) DeleteAt(p Position)
- func (g *Grid[T]) ObjectAt(p Position) *Object[T]
- func (g *Grid[T]) Objects() []*Object[T]
- func (g *Grid[T]) Size() Size
- type Object
- type Position
- type Rectangle
- type Size
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grid ¶
type Grid[T any] struct { // contains filtered or unexported fields }
func (*Grid[T]) CanAddRectangle ¶
func (*Grid[T]) ContainsPosition ¶
Click to show internal directories.
Click to hide internal directories.