Skip to content

Class: QuadRoot

Constructors

Methods

Constructors

constructor

new QuadRoot(maxNodesPerCell?, minCellSize?): QuadRoot

Parameters

NameTypeDefault value
maxNodesPerCellnumber10
minCellSizenumber500

Returns

QuadRoot

Defined in

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

Methods

createQuadTree

createQuadTree(nodes): void

Parameters

NameType
nodesIQuadNode[]

Returns

void

Defined in

src/core/tree/quad/QuadRoot.ts:28


getNodesByAABB

getNodesByAABB(minX, minY, maxX, maxY): IQuadNode[]

Parameters

NameType
minXnumber
minYnumber
maxXnumber
maxYnumber

Returns

IQuadNode[]

Defined in

src/core/tree/quad/QuadRoot.ts:35


getTriangleAtPoint

getTriangleAtPoint(point, threshold?): IQuadNode

Parameters

NameTypeDefault value
pointVector3undefined
thresholdnumber5

Returns

IQuadNode

Defined in

src/core/tree/quad/QuadRoot.ts:56

Released under the MIT License