grid

package
v0.0.0-...-d361f56 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorldGrid

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

func CreateWorldGrid

func CreateWorldGrid(width, height, cellRadius int) WorldGrid

func (*WorldGrid) FindCell

func (wg *WorldGrid) FindCell(x, y float32) *WorldGridCell

func (*WorldGrid) NumCells

func (wg *WorldGrid) NumCells() int

type WorldGridCell

type WorldGridCell struct {
	ID int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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