bvh

package
v0.0.0-...-2d56304 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BVH

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

func New

func New(o O) *BVH

func (*BVH) BroadPhase

func (bvh *BVH) BroadPhase(l Layer, q hyperrectangle.R) []id.ID

func (*BVH) Insert

func (bvh *BVH) Insert(x id.ID, l Layer, aabb hyperrectangle.R)

func (*BVH) Remove

func (bvh *BVH) Remove(x id.ID)

func (*BVH) Update

func (bvh *BVH) Update(x id.ID, aabb hyperrectangle.R)

type Layer

type Layer uint16

Layer is a bitmask representing the different collision layers an object exists within.

type O

type O bvh.O

type RO

type RO interface {
	BroadPhase(l Layer, q hyperrectangle.R) []id.ID
}

Jump to

Keyboard shortcuts

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