Class: QuadTree
Constructors
Methods
Constructors
constructor
• new QuadTree(): QuadTree
Returns
Defined in
src/core/tree/quad/QuadTree.ts:20
Methods
getQuadNode
▸ getQuadNode(idx
): IQuadNode
Parameters
Name | Type |
---|---|
idx | number |
Returns
Defined in
src/core/tree/quad/QuadTree.ts:28
clear
▸ clear(): void
Returns
void
Defined in
src/core/tree/quad/QuadTree.ts:32
initNodes
▸ initNodes(nodes
): void
Parameters
Name | Type |
---|---|
nodes | IQuadNode [] |
Returns
void
Defined in
src/core/tree/quad/QuadTree.ts:37
buildQuadTree
▸ buildQuadTree(maxNodesPerCell
, minCellSize
): void
Parameters
Name | Type |
---|---|
maxNodesPerCell | number |
minCellSize | number |
Returns
void
Defined in
src/core/tree/quad/QuadTree.ts:49
getNodesIntersectingtAABox
▸ getNodesIntersectingtAABox(result
, aabb
): number
Parameters
Name | Type |
---|---|
result | number [] |
aabb | QuadAABB |
Returns
number