SweepAndPruneVertical:

One dimensional vertical sweep and prune

ignore

edges: Array<SapEdgeVertical>

objects: Map<GameObj, [ SapEdgeVertical, SapEdgeVertical ] >

versionsForObject: Map<GameObj, [ number, number, number ] >

add(obj: GameObj ): void

Add the object and its edges to the list

paramobj- The object to add

remove(obj: GameObj ): void

Remove the object and its edges from the list

paramobj- The object to remove

clear(): void

update(): void

Update edges and sort

iterPairs(pairCb: (obj1: GameObj , obj2: GameObj )=>void ): void

Iterates all object pairs which potentially collide

retrieve(rect: Rect , retrieveCb: (obj: GameObj )=>void ): void