Node

Node

new Node(tree, a, b)

Source:
Parameters:
Name Type Description
tree cp.BBTree
a Node
b Node

Members

isLeaf

Source:
Default Value:
  • false

Methods

bbArea() → {number}

Source:
Returns:
Type
number

intersectsBB() → {boolean}

Source:
Returns:
Type
boolean

markLeafQuery(leaf, left, tree, func)

Source:
Parameters:
Name Type Description
leaf Leaf
left boolean
tree cp.BBTree
func function

markSubtree(tree, staticRoot, func)

Source:
Parameters:
Name Type Description
tree cp.BBTree
staticRoot Node | Leaf
func function

otherChild(child) → {boolean}

Source:
Parameters:
Name Type Description
child Node
Returns:
Type
boolean

recycle(tree)

Source:
Parameters:
Name Type Description
tree cp.BBTree

replaceChild(child, value, tree)

Source:
Parameters:
Name Type Description
child Node
value Node
tree cp.BBTree

setA(value)

Source:
Parameters:
Name Type Description
value Node

setB(value)

Source:
Parameters:
Name Type Description
value Node