Class pv.Quadtree.Node
A node in a quadtree.
Defined in: Quadtree.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a new node.
|
Field Attributes | Field Name and Description |
---|---|
The child node for the second quadrant, if any.
|
|
The child node for the third quadrant, if any.
|
|
The child node for the fourth quadrant, if any.
|
|
True if this node is a leaf node; i.e.
|
|
The particle associated with this node, if any.
|
Field Detail
{pv.Quadtree.Node}
c2
The child node for the second quadrant, if any.
{pv.Quadtree.Node}
c3
The child node for the third quadrant, if any.
{pv.Quadtree.Node}
c4
The child node for the fourth quadrant, if any.
{boolean}
leaf
True if this node is a leaf node; i.e., it has no children. Note that both
leaf nodes and non-leaf (internal) nodes may have associated particles. If
this is a non-leaf node, then at least one of #c1, #c2,
#c3 or #c4 is guaranteed to be non-null.
{pv.Particle}
p
The particle associated with this node, if any.