package
0.22.0
Repository: https://github.com/mokiat/lacking.git
Documentation: pkg.go.dev

# Functions

CuboidRegion creates a new HexahedronRegion that represents a Cuboid shape using the specified position and size.
NewDynamicOctree creates a new DynamicOctree using the provided settings.
NewDynamicSet creates a new DynamicSet using the provided settings.
NewPairVisitorBucket creates a new PairVisitorBucket instance with the specified initial capacity, which is only used to preallocate memory.
NewStaticOctree creates a new StaticOctree using the provided settings.
NewStaticSet creates a new StaticSet using the provided settings.
NewSweepPruneSet creates a new SweepPruneSet using the provided settings.
NewVisitorBucket creates a new VisitorBucket instance with the specified initial capacity, which is only used to preallocate memory.
ProjectionRegion creates a new HexahedronRegion using the specified projection matrix.

# Structs

DynamicOctree is a spatial structure that uses a loose octree implementation with biased placement to enable the fast search of items within a region.
DynamicOctreeSettings contains the settings for a DynamicOctree.
DynamicOctreeStats represents the current state of a DynamicOctree.
DynamicOctreeVisitStats represents statistics on the last visit operation performed on a DynamicOctree.
DynamicSet is a spatial structure that uses brute force to figure out which items are visible during a Visit.
DynamicSetSettings contains the settings for a DynamicSet.
PairVisitorBucket is an implementation of PairVisitor that stores observed item pairs into a buffer for faster and more cache-friendly iteration afterwards.
SphericalRegion represents a region in space that is defined by a position and a radius around that position.
StaticOctree represents an octree spatial structure that only allows the insertion of static items.
StaticOctreeSettings contains the settings for a StaticOctree.
StaticOctreeStats represents the current state of a StaticOctree.
StaticOctreeVisitStats represents statistics on the last visit operation performed on a StaticOctree.
StaticSet is a spatial structure that uses brute force to figure out which items are visible during a Visit.
StaticSetSettings contains the settings for a StaticSet.
SweepPruneSet is a spatial data structure that uses the sweep and prune algorithm to determine potentially intersecting item pairs.
SweepPruneSetSettings contains the settings for a SweepPruneSet.
VisitorBucket is an implementation of Visitor that stores observed items into a buffer for faster and more cache-friendly iteration afterwards.

# Interfaces

PairVisitor represents a callback mechanism to pass pairs of items back to the client.
Visitor represents a callback mechanism to pass items back to the client.

# Type aliases

DynamicOctreeItemID is an identifier used to control the placement of an item into a dynamic octree.
DynamicSetItemID is an identifier used to control the placement of an item into a dynamic set.
HexahedronRegion represents a region in space that is defined by six clipping planes pointing inwards.
PairVisitorFunc is an implementation of PairVisitor that passes each observed pair of items to the wrapped function.
Plane represents a plane that can be used to split a 3D space into two sub-spaces.
SweepPruneItemID is an identifier used to control the placement of an item into the sweep and prune set.
VisitorFunc is an implementation of Visitor that passes each observed item to the wrapped function.