visualization-tools

Home > @visualization-tools/core > ISharedEntityQuadTree

ISharedEntityQuadTree interface

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 interface ISharedEntityQuadTree<TUpdateArg, TTraits extends IHitTestableTrait> extends ISharedObject 

Extends: ISharedObject

Properties

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

Methods

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