Skip to content

@ue-too/dynamics / index / SweepAndPrune

類別: SweepAndPrune<T> ​

定義於: dynamic-tree.ts:112

Sweep and Prune (SAP) spatial indexing algorithm.

型別參數 ​

T ​

T extends SpatialIndexObject

實作 ​

建構函式 ​

建構函式 ​

new SweepAndPrune<T>(): SweepAndPrune<T>

回傳 ​

SweepAndPrune<T>

方法 ​

clear() ​

clear(): void

定義於: dynamic-tree.ts:122

回傳 ​

void

實作了 ​

SpatialIndex.clear


draw()? ​

optional draw(context): void

定義於: dynamic-tree.ts:281

參數 ​

context ​

CanvasRenderingContext2D

回傳 ​

void

實作了 ​

SpatialIndex.draw


findAllOverlaps() ​

findAllOverlaps(): object[]

定義於: dynamic-tree.ts:212

回傳 ​

object[]


getStats() ​

getStats(): object

定義於: dynamic-tree.ts:306

回傳 ​

object

endpointCount ​

endpointCount: number

objectCount ​

objectCount: number


insert() ​

insert(object): void

定義於: dynamic-tree.ts:128

參數 ​

object ​

T

回傳 ​

void

實作了 ​

SpatialIndex.insert


remove() ​

remove(object): void

定義於: dynamic-tree.ts:172

參數 ​

object ​

T

回傳 ​

void


retrieve() ​

retrieve(queryObject): T[]

定義於: dynamic-tree.ts:181

參數 ​

queryObject ​

T

回傳 ​

T[]

實作了 ​

SpatialIndex.retrieve


update() ​

update(object): void

定義於: dynamic-tree.ts:151

參數 ​

object ​

T

回傳 ​

void