query

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadPhase added in v0.2.0

func BroadPhase(c *cache.C, root cid.ID, data map[id.ID]hyperrectangle.R, q hyperrectangle.R) []id.ID

BroadPhase checks a BVH tree for the query rectangle and returns a list of objects which touch the query AABB.

N.B.: This function is identical in implementation to the BVH query op, but is rewritten here to preserve performance.

func Query

func Query(c *cache.C, root cid.ID, data map[id.ID]hyperrectangle.R, f func(r hyperrectangle.R) bool) []id.ID

func Raycast added in v0.2.0

func Raycast(c *cache.C, root cid.ID, data map[id.ID]hyperrectangle.R, q ray.R) []id.ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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