Class: QuadRoot
Constructors
Methods
Constructors
constructor
• new QuadRoot(maxNodesPerCell?
, minCellSize?
): QuadRoot
Parameters
Name | Type | Default value |
---|---|---|
maxNodesPerCell | number | 10 |
minCellSize | number | 500 |
Returns
Defined in
src/core/tree/quad/QuadRoot.ts:20
Methods
createQuadTree
▸ createQuadTree(nodes
): void
Parameters
Name | Type |
---|---|
nodes | IQuadNode [] |
Returns
void
Defined in
src/core/tree/quad/QuadRoot.ts:28
getNodesByAABB
▸ getNodesByAABB(minX
, minY
, maxX
, maxY
): IQuadNode
[]
Parameters
Name | Type |
---|---|
minX | number |
minY | number |
maxX | number |
maxY | number |
Returns
Defined in
src/core/tree/quad/QuadRoot.ts:35
getTriangleAtPoint
▸ getTriangleAtPoint(point
, threshold?
): IQuadNode
Parameters
Name | Type | Default value |
---|---|---|
point | Vector3 | undefined |
threshold | number | 5 |