Class: Root

jsts.index.quadtree.Root

new Root()

QuadRoot is the root of a single Quadtree. It is centred at the origin, and does not have a defined extent.
Source:

Methods

insert(itemEnv, item)

Insert an item into the quadtree this is the root of.
Parameters:
Name Type Description
itemEnv jsts.geom.Envelope the item envelope.
item Object the item to insert.
Source:

insertContained(tree, itemEnv, item)

insert an item which is known to be contained in the tree rooted at the given QuadNode root. Lower levels of the tree will be created if necessary to hold the item.
Parameters:
Name Type Description
tree jsts.index.quadtree.Node the root-node of the tree.
itemEnv jsts.geom.Envelope the envelope.
item Object the item to insert.
Source:

isSearchMatch(searchEnv) → {Boolean}

Checks if the root is a search match.
Parameters:
Name Type Description
searchEnv jsts.geom.Envelope the envelope.
Source:
Returns:
Always returns true for a root node.
Type
Boolean