BBTree

cp. BBTree

new BBTree(staticIndex)

Source:
Parameters:
Name Type Description
staticIndex cp.SpatialIndex

Extends

Methods

collideStatic(staticIndex, func)

Source:
Inherited From:
Collide the objects in an index against the objects in a staticIndex using the query callback function.
Parameters:
Name Type Description
staticIndex cp.SpatialIndex
func function

contains(obj, hashid) → {boolean}

Source:
Parameters:
Name Type Description
obj
hashid number
Returns:
Type
boolean

count() → {number}

Source:
Returns:
Type
number

each(func)

Source:
Parameters:
Name Type Description
func function

getBB(obj, dest)

Source:
Parameters:
Name Type Description
obj Node
dest Leaf

getStamp() → {number}

Source:
Returns:
Type
number

incrementStamp()

Source:

insert(obj, hashid)

Source:
Parameters:
Name Type Description
obj Node
hashid number

log()

Source:

makeNode(a, b) → {Node}

Source:
Parameters:
Name Type Description
a Node
b Node
Returns:
Type
Node

makePair(leafA, nextA, leafB, nextB) → {Pair}

Source:
Parameters:
Name Type Description
leafA Leaf
nextA Leaf
leafB Leaf
nextB Leaf
Returns:
Type
Pair

optimize()

Source:

pointQuery(point, func)

Source:
Parameters:
Name Type Description
point cp.Vect
func function

query(bb, func)

Source:
Parameters:
Name Type Description
bb Node
func function

reindex()

Source:

reindexObject(obj, hashid)

Source:
Parameters:
Name Type Description
obj
hashid number

reindexQuery(func)

Source:
Parameters:
Name Type Description
func function

remove(obj, hashid)

Source:
Parameters:
Name Type Description
obj
hashid number

segmentQuery(a, b, t_exit, func)

Source:
Parameters:
Name Type Description
a cp.Vect
b cp.Vect
t_exit number
func function

subtreeRecycle(node)

Source:
Parameters:
Name Type Description
node Node