visualization-tools

Home > @visualization-tools/core > SharedEntityQuadTree

SharedEntityQuadTree class

Wrapper of ISharedQuadTree. Passing the hit test doesn’t guarantee that the pointer is within the AABB, an additional check should be made in the IHitTestComponent.

Signature:

export declare class SharedEntityQuadTree<TUpdateArg, TTraits extends IHitTestableTrait> implements ISharedEntityQuadTree<TUpdateArg, TTraits> 

Implements: ISharedEntityQuadTree<TUpdateArg, TTraits>

Constructors

Constructor Modifiers Description
(constructor)(wrapper, maxDepth, maxElementsPerNode)   Constructs a new instance of the SharedEntityQuadTree class

Properties

Property Modifiers Type Description
entities   TEntityTrait<TUpdateArg, TTraits>[]  
hitTestArg   TUpdateArg | null  
sharedObject   IReferenceCountedPtr  
sharedTree   ISharedQuadTree<Float32Array>  

Methods

Method Modifiers Description
addEntity(entity)    
removeEntity(entity)    
setHitTestArg(hitTestArg)