Class
SweepAndPruneVertical
:One dimensional vertical sweep and prune
ignore
edges
: Array<SapEdgeVertical>objects
: Map<GameObj<AreaComp>, [SapEdgeVertical, SapEdgeVertical]>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