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