Class
SweepAndPruneHorizontal
:One dimensional horizontal sweep and prune
ignore
edges
: Array<SapEdgeHorizontal>objects
: Map<GameObj<AreaComp>, [SapEdgeHorizontal, SapEdgeHorizontal]>add
(obj: GameObj<AreaComp>) => voidAdd the object and its edges to the list
param obj- The object to add
remove
(obj: GameObj<AreaComp>) => voidRemove the object and its edges from the list
param obj- The object to remove
clear
() => voidupdate
() => voidUpdate edges and sort
iterPairs
(pairCb: (obj1: GameObj<AreaComp>, obj2: GameObj<AreaComp>) => void) => voidIterates all object pairs which potentially collide