collision

package
v0.0.0-...-10abb40 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-3.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 Insertable

type Insertable interface {
	GetX() float64
	GetY() float64
}

type SpatialHashmap

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

Map for storing information about entities in 2d space

func New

func New(cellSize float64) *SpatialHashmap

func (*SpatialHashmap) Insert

func (m *SpatialHashmap) Insert(entity Insertable)

func (*SpatialHashmap) Remove

func (m *SpatialHashmap) Remove(entity Insertable) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳