Skip to content

Class: QuadTree

Constructors

Methods

Constructors

constructor

new QuadTree(): QuadTree

Returns

QuadTree

Defined in

src/core/tree/quad/QuadTree.ts:20

Methods

getQuadNode

getQuadNode(idx): IQuadNode

Parameters

NameType
idxnumber

Returns

IQuadNode

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

NameType
nodesIQuadNode[]

Returns

void

Defined in

src/core/tree/quad/QuadTree.ts:37


buildQuadTree

buildQuadTree(maxNodesPerCell, minCellSize): void

Parameters

NameType
maxNodesPerCellnumber
minCellSizenumber

Returns

void

Defined in

src/core/tree/quad/QuadTree.ts:49


getNodesIntersectingtAABox

getNodesIntersectingtAABox(result, aabb): number

Parameters

NameType
resultnumber[]
aabbQuadAABB

Returns

number

Defined in

src/core/tree/quad/QuadTree.ts:176