Home > @visualization-tools/core > ISharedEntityQuadTree
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
| Property | Type | Description |
|---|---|---|
| entities | TEntityTrait<TUpdateArg, TTraits>[] | |
| hitTestArg | TUpdateArg | null | |
| sharedTree | ISharedQuadTree<Float32Array> |
| Method | Description |
|---|---|
| addEntity(entity) | |
| removeEntity(entity) | |
| setHitTestArg(hitTestArg) |